[ 
https://issues.apache.org/jira/browse/SLING-562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12610354#action_12610354
 ] 

Roy T. Fielding commented on SLING-562:
---------------------------------------

They are just a part of the URI path.  They are better for this purpose because 
they can be associated with each segment of the path and won't conflict with 
query processing or cache behavior.

Alternatively, just use a different extension for tidy-json. You are 
effectively requesting a different data format, so it might as well have its 
own extension.  Or you could define it like /em.3.tidy.json, where tidy is a 
filter that tidies up any number of formats.


> Pretty print the json dump
> --------------------------
>
>                 Key: SLING-562
>                 URL: https://issues.apache.org/jira/browse/SLING-562
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons JSON
>    Affects Versions: Commons JSON 2.0.2, Servlets Get 2.0.2
>            Reporter: Tobias Bocanegra
>            Priority: Minor
>         Attachments: json_tidy.r673772.patch
>
>
> the current json exports are using the JSONWriter which writes a very compact 
> for of json.
> this is certainly good for performance, but a big pain when developping / 
> debugging.
> It would be cool if a 'pretty print' flag can be passed to the export that 
> enables nice
> formatted jsons. eg http://localhost/content/site/en.3.json?tidy=true
> I patched the current JSONWriter and JsonItemWriter and added the respective 
> flag to the servlet.
> WDYT?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to