Hi Peter,
(replied to the JSON part in a renamed thread to separate matters)
>... What I meant with not finding the source code to the JCR Property class was
> that i did a grep . -exec "javax.jcr.Property" {} \; -print and every
> file listed was one referering to it, not defining it, except for a jar
> file, which came from the jcr project. So I kind of gave up on that point
> :)...
Ah ok - I don't think you need the JCR Property source code, as the
JSON format is completely generated by Sling.
In microsling-core, that's
./src/main/java/org/apache/sling/microsling/helpers/json/JsonItemWriter.java
./src/main/java/org/apache/sling/microsling/slingservlets/renderers/JsonRendererServlet.java
And in launchpad/launchpad-servlets that's
./src/main/java/org/apache/sling/launchpad/renderers/JsonItemWriter.java
./src/main/java/org/apache/sling/launchpad/renderers/JsonRendererServlet.java
-Bertrand