Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-796

Corrupt json output with resources from a bundle or other places

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Get 2.0.2
    • Servlets Get 2.0.4
    • Servlets
    • 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

          Activity

            People

              cziegeler Carsten Ziegeler
              cziegeler Carsten Ziegeler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: