title: Postman: JSON test for count giving error
body: <p>I need to count the number of objects in <code>fdArea</code> array.</p>
  
  <p>Used code below but it is giving an error:</p>
  
  <blockquote>
    <p>There was an error in evaluating the test script:  JSONError: Unexpected token 'o' at 1:2 [object Object]</p>
  </blockquote>
  
  <p>Expected Result: <strong>count = 14</strong></p>
  
  <p>I am not quite able to understand the error. </p>
  
  <p>Plz, help me with the correct code to test.</p>
  
  <hr>
  
  <p>Response to parse:</p>
  
  <pre><code>"fdArea":
  [{
          "dAreaId": 2,
          "dArea": "Belgium",
          "dPrefixCode": "BE"
      },
      {
          "dAreaId": 3,
          "dArea": " Czech",
          "dPrefixCode": "CZ"
      },
      {
          "dAreaId": 6,
          "dArea": "France",
          "dPrefixCode": "FR"
      },
      {
          "dAreaId": 4,
          "dArea": " Germany",
          "dPrefixCode": "DE"
      },
      {
          "dAreaId": 7,
          "dArea": " Hungary",
          "dPrefixCode": "HU"
      },
      {
          "dAreaId": 8,
          "dArea": "Italy",
          "dPrefixCode": "IT"
      },
      {
          "dAreaId": 9,
          "dArea": "Netherlands",
          "dPrefixCode": "NL"
      },
      {
          "dAreaId": 10,
          "dArea": " Poland",
          "dPrefixCode": "PL"
      },
      {
          "dAreaId": 12,
          "dArea": "Slovakia",
          "dPrefixCode": "SK"
      },
      {
          "dAreaId": 14,
          "dArea": "South Africa",
          "dPrefixCode": "ZAF"
      },
      {
          "dAreaId": 5,
          "dArea": "Spain",
          "dPrefixCode": "ES"
      },
      {
          "dAreaId": 11,
          "dArea": "Sweden",
          "dPrefixCode": "SE"
      },
      {
          "dAreaId": 1,
          "dArea": " United Arab Emirates",
          "dPrefixCode": "ARE"
      },
      {
          "dAreaId": 13,
          "dArea": "United Kingdom",
          "dPrefixCode": "UK"
      }]
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>var responseJson = JSON.parse();
  var count = responseJson.value.length;
  console.log(count);
  </code></pre>