Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2916

unmarshalling the JSON of a subclass fails when a field value is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.9
    • 2.4, 2.3.4
    • JAX-RS
    • None
    • Windows XP, JDK 1.6.0_14

    • Moderate

    Description

      Unmarshalling the JSON :

      {"@xsi.type" : "subClassTest", "id" : "10000000", "name" : null }

      should give an instance of SubClassTest.class and the value of the field name(which is a String) should be null, but with the current implementation the value of the field name is String "null" .

      This happens only in the case of unmarshalling JSON to a subclass.

      Attachments

        1. CXF-2916-jettison.patch
          0.8 kB
          Andrew Nelson
        2. CXF-2916.patch
          3 kB
          Andrew Nelson

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            chaitanyak Chaitanya Choleti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified