title: How does AEM resolve the JSON extension?
body: <p>In CQ, if I request a resource such as <code>localhost:4502/content/geometrixx/en.json</code>, I would get the node information in JSON format. The same applies for the XML extension as well.<br>
  My question is, where is it implemented that the node information is rendered in JSON format if the URL extension is <code>json</code>?
  Basically, the extension is just simply text and another part of the URL structure. Simply appending <code>json</code> won't magically fetch the information in JSON format.<br>
  Obviously, one would have to use this information to write logic for returning the node information in JSON.</p>
  
  <p>I'm trying to learn about the internal workings of CQ. Maybe the concept of getting JSON is the same in Apache Sling as well? I don't know if it's CQ specific or not, but the point is same. I've tried <code>/system/console/jcrresolver</code> as well, but it didn't help.</p>