XStream
  1. XStream
  2. XSTR-477

JSON JettisonMappedXmlDriver quoting numeric values breaking JSON 2 Java deserialization Issue

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: Upcoming
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      None

      Description

      There's an issue with the JettisonMappedXmlDriver (actually it's in the Jettison project's JettisonMappedXmlDriver) when it converts objects with numeric fields (or boolean fields). It's quoting those fields instead of just putting in a JSON numeric/primitive literal.

      This makes it more difficult to use the JSON output for web services, and also for converting back to Java objects using regular Java bean reflection (based on getter/setter methods).

      See details in the Jettison JIRA:
      http://jira.codehaus.org/browse/JETTISON-32

      I've included a zip file containing the patched Jettison and XStream files.

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Doug Daniels
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: