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

Jason E Bailey commented on SLING-7934:
---------------------------------------

The JSONObjectCreator in the Default GET servlets is a private class and not 
exposed by the Bundle. I only see the use of JSON when you are sending data, 
either as a response to a query or you are posting the data elsewhere. The use 
case of Posting the content of the resource is something that I have done 
several times downstream.

The answer to your follow up questions is No. My thoughts was that this was a 
utility to assist in creating a JSON from a resource and not tied back to the 
underlying resource provider. Although that would be cool.

> Add the ability for a resource to adapt to a JSONObject
> -------------------------------------------------------
>
>                 Key: SLING-7934
>                 URL: https://issues.apache.org/jira/browse/SLING-7934
>             Project: Sling
>          Issue Type: Improvement
>            Reporter: Jason E Bailey
>            Priority: Major
>
> There are multiple implementations all doing the same process of converting a 
> resource to a JSONObject. If it's that common we should just add the ability 
> to adapt the resource and centralize the implementation so that it's 
> consistent.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to