Firebase REST API working with shallow data
<p>I am looking at the documentation for the <a href="https://www.firebase.com/docs/rest/api/" rel="nofollow">Firebase REST API</a> and it states that </p>

<blockquote>
  <p>Shallow - This is an advanced feature, designed to help you work with large datasets without needing to download everything. Set this to true to limit the depth of the data returned at a location. If the data at the location is a JSON primitive (string, number or boolean), its value will simply be returned. If the data snapshot at the location is a JSON object, the values for each key will be truncated to true.</p>
</blockquote>

<p>However from what I have found it seems to always set the value to true regardless of whether it is a JSON primitive or object?</p>

<p>eg from what I have read I would expect the below call</p>

<p><code>https://samplechat.firebaseio-demo.com/message_list/-K6ojd3dJQ3AVi36cruT/.json?print=pretty&amp;shallow=true</code> to return</p>

<pre><code>{
    "text" : "Ahoy!",
    "user_id" : "jack"
}
</code></pre>

<p>instead it is returning </p>

<pre><code>{
    "text" : true,
    "user_id" : true
}
</code></pre>

<p>I understand in this example I provided shallow isn't required as it is the lowest level, however I have found this issue also with my own data at higher levels were everything is returning true.</p>

<p>Is there a way to return the value of a JSON primitive as suggested using the shallow param?</p>