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

Carsten Ziegeler commented on SLING-7934:
-----------------------------------------

I'm not totally against this, but I would assume that either the default JSON 
is good enough and then the json servlet does the trick to serve the JSON - and 
in the other cases a special JSON needs to be generated which is not the 
default one.
Are you intending that for the latter case, there is a more specific adaptTo 
implementation?

> 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