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

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

Yes, right, so the get(myKey, JsonValue.class) is the more sophisticated 
version of my getJSONType :)
I think it would be great if we would also leverage the converter in here (see 
SLING-7800).
The problematic part is in how far we can or want to enforce the support for 
this conversion on all resources?  ValueMap is just an interface

> 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