title: How to convert JavaScript literal into JSON array?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2693021/how-to-count-javascript-array-objects">How to count JavaScript array objects?</a>  </p>
  </blockquote>
  
  
  
  <p><strong>If it's not a JavaScript array, so how to convert it into JSON array?</strong></p>
  
  <pre><code>var member = {
      "mother": {
          "name" : "Mary",
          "age" : "48"
      },
      "father": {
          "name" : "Bill",
          "age" : "50",
          "friend": {
            "co-worker" : "Jake"
          }
      },
      "brother": {
          "name" : "Alex",
          "age" : "28"
      }
  }
  </code></pre>