Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-19220

problem with json serialization of collection/array properties annotated with @JSON

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.0.12 EE, 6.1.0 CE RC1
    • Fix Version/s: 6.0.12 EE, 6.1.0 CE RC1
    • Component/s: WCM
    • Labels:
      None
    • Branch Version/s:
      6.0.x
    • Backported to Branch:
      Committed

      Description

      By default, loose serialization serializes all non-collection properties of a bean. To include some collection-like property, we need to either specifiy it manually in the code at place of serialization, or to annotate property with @JSON annotation (just property, no need to annotate the whole class).

      Putting @JSON annotation does not work i.e. it works only in strict mode We need to make it work in non-strict mode, too.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                igor.spasic Igor Spasic
                Reporter:
                igor.spasic Igor Spasic
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  7 years, 29 weeks, 2 days ago