title: Cosmos DB SQL equivalent of Object.keys
body: <p>Because of array ordering issues with change detection AND the fact that the schema in the array is inconsistent, i'd prefer to structure arrays of object more as dictionaries, or plain JSON objects, with keys of each object id.</p>
  <p>For example, instead of:</p>
  <pre><code>{id: 'abc', items: [{id: 'xyz', text:'foo'},{id: 'wxy', name:'bar'}]}
  </code></pre>
  <p>I'd prefer:</p>
  <pre><code>{id: 'abc', items: {'xyz': {text:'foo'},'wxy', {name:'bar'}}}
  </code></pre>
  <p>It's there anyway in Cosmos SQL API to query an object and list it's keys and/or the values since the keys are inconsistent between objects?</p>
  <p>I'm looking for something equivalent to Object.keys() or Object.values() in JavaScript.</p>