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

Oliver Lietz commented on SLING-3008:
-------------------------------------

Does it mean we can simply remove the code block? (works for me)

{noformat}
            if ( resource.getResourceType() != null ) {
                obj.put("sling:resourceType", resource.getResourceType());
            }
            if ( resource.getResourceSuperType() != null ) {
                obj.put("sling:resourceSuperType", 
resource.getResourceSuperType());
            }
{noformat}

Or is there anything else to do?

> Render resource type (and super type) if resource can't be adapted to a map 
> in JSON
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-3008
>                 URL: https://issues.apache.org/jira/browse/SLING-3008
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Servlets Get 2.1.4
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Servlets Get 2.1.6
>
>
> If the resource can't be adapted to a (value) map, at least resource type and 
> resource super type (if not null) should be rendered in the json output



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to