title: How to get the name of the array in json data using JavaScript
body: <p>I have a JSON object which comes back like this from a JavaScript API call:</p>
  
  <pre><code>{
    "myArray": [
      {
        "version": 5,
        "permissionMask": 1
      },
      {
        "version": 126,
        "permissionMask": 1
      }
    ]
  }
  </code></pre>
  
  <p>How can I access the name of the array (i.e <code>myArray</code>) in JavaScript. I need to use the name of the array to determine the flow later on.</p>