title: Marklogic Json Xquery can't query
body: <p>I loaded twitter's JSON's search output into Marklogic transforming it into Marklogic's JSON XML format using the basic transformer.</p>
  
  <p>When i try to query for the id using the following XQuery</p>
  
  <pre><code>xquery version "1.0-ml";
  declare namespace html = "http://www.w3.org/1999/xhtml";
  for $r in doc()/json
  let $b:=$r/id
  return (
  $b)
  </code></pre>
  
  <p>it keeps complaining that there are no results.</p>
  
  <p>When i use doc() the xml displays fine but doc()/json dosen't display anything.</p>
  
  <p>Below is a snippet of the XML that Marklogic generated from the JSON output from Twitter</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;json type="object" xmlns="http://marklogic.com/xdmp/json/basic"&gt;
    &lt;contributors type="null"/&gt;
    &lt;truncated type="boolean"&gt;false&lt;/truncated&gt;
    &lt;text type="string"&gt;@angelicism I love this site: http://t.co/XIjckcu0Lk&lt;/text&gt;
    &lt;in__reply__to__status__id type="number"&gt;369589929183297536&lt;/in__reply__to__status__id&gt;
    &lt;id type="number"&gt;369595664277065728&lt;/id&gt;
    &lt;favorite__count type="number"&gt;0&lt;/favorite__count&gt;
  ...
  </code></pre>