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

Felix Meschberger commented on SLING-796:
-----------------------------------------

Applied some code cleanup in Rev. 729990, such that creation of the JSON object 
is unified (it has always to be created, regardless of the contents) and child 
resources have always to be rendered.

Could you please check, whether this also works for you ? Thanks.

> Corrupt json output with resources from a bundle or other places
> ----------------------------------------------------------------
>
>                 Key: SLING-796
>                 URL: https://issues.apache.org/jira/browse/SLING-796
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>    Affects Versions: Servlets Get 2.0.2
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Servlets Get 2.0.4
>
>
> When outputting json through the JsonResourceWriter, the resource is tried to 
> adapted to a ValueMap, Map and as a last resort String.
> If the resource is can't be adapted to any of the three, only the key is 
> outputted with no value, creating a corrupt json.
> As in this case there is nothing one can really output, I think it makes 
> sense to just output an empty object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to