Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8255

JSONFormatter does not properly generate the @type metadata field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.9.2, 1.10.0, 1.11.0, 1.12.0
    • None
    • serialization

    Description

      The Apache Geode JSONFormatter class is not symmetric.

      While it can parse JSON content and properly resolve JSON Objects as POJOs (from PdxInstance.getObject() when the @type metadata field is present in the JSON content, the JSONFormatter does not properly set the @type metadata field, particularly when a PdxInstance has a valid class name as determined by PdxInstance.getClassName().

      A test case illustrating this issue can be found here.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jblum John Blum
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: