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

Accept JSON syntax as values for arrays and for objects

    Details

      Description

      When we have array values on the services invoker, we need to pass comma separated values, and we should be able to pass array json syntax as well.

      Example:

      This one works:

      {
          "/assetvocabulary/get-vocabularies": {
      		vocabularyIds: '10436,10437'
      	}
      }
      

      This one doesn't work:

      {
          "/assetvocabulary/get-vocabularies": {
      		vocabularyIds: [10436,10437]
      	}
      }
      

      Not only for arrays, we should be able to pass JSON object for object arguments, too. For example, to create some object, we should be able also to pass JSON object string.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.lee Lawrence Lee
                Reporter:
                igor.spasic Igor Spasic (Inactive)
                Recent user:
                Shalaka Tendulkar
                Participants of an Issue:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  6.2.0 CE M4