Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Servlets Get 2.0.2
-
None
Description
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.
Attachments
Issue Links
- is duplicated by
-
SLING-795 JSON dump of / children fails due to /system synthetic resource
- Closed