title: Getting a JCR Node in .json form from OSGI bundle
body: <p>I'm trying to get a JCR node as JSON within the context of a Java Class. I was curious if there was an internal API for JCR that will return the Node as a JSON w/ an array of it's child nodes.</p>
  
  <p>A good example would be the output that you would get from making an request to mynode.infinity.json in the browser.</p>
  
  <p>I took at look at JsonJcrNode class, and it does give me what I want, but it excludes the children of the target node.</p>
  
  <p>I'm thinking that I will have to manually get a node and it's children and then iterate through properties and manually create my JSONObject. I was just curious if this has been done already or if there are any other interfaces I'm missing that could help me solve this issue.</p>
  
  <p>thank you,</p>
  
  <p>Brodie</p>