title: How to check if my json array has missing objects
body: <p>i am having and json file wich is created dynamicaly.</p>
  
  <p>For example</p>
  
  <pre><code>{
      "users": [
          {
              "name": "Bill",
              "surname": "Antony",
              "userPoints": 121,
              "wins": 11,
              "nationality": "English"
          },
          {
              "name": "George",
              "surname": "Peter",
              "userPoints": 1332,
              "wins": 11
          }
      ]
  }
  </code></pre>
  
  <p>As you can see the second object is missing nationality field.
  So in my code when i am printing with JS Jquery (.each). I am having an 'undedified' print for the second user. How can i check this before it's printed?</p>
  
  <p>EDIT: I am adding the way i am printing the data:</p>
  
  <pre><code>function displayData(array) {
      var list = $("#list").empty();
      $.each(array, function () {
         $("ul").append('&lt;li&gt;&lt;span class="num"&gt;'+ if(this["nationality"]){ this["nationality"] }+'&lt;/span&gt;&lt;/li&gt;');
      });
  }
  </code></pre>