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.