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

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

I'm not sure what you're definition of easily done is in this case. There's a 
whole class, org.apache.sling.servlets.get.impl.util.JsonObjectCreator, which 
was created to convert a resource to a JsonObject via a ValueMap and that is an 
internal class. If someone would like to do the same thing they would need to 
copy this class over or write their own.

> 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
>            Assignee: 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