There's currently no easy way to turn a JCR node into a JSON object.
Granted, you have the JsonItemWriter, but it writes JSON text directly to an output stream. If you want to modify the JSON object before it is written, you're out of luck.
Therefore, Im creating the JsonJcrNode. It extends JSONObject, but otherwise behaves similarly to JsonItemWriter (in fact, some of the code is directly copied from JsonItemWriter).