JSON Web Service Invoker doesn't serialize null results

Description

When some API method called via JSON WS Invoker returns null, it will be returned as an empty string instead as "{}" (i.e. JSONFactoryUtil.getNullJSON()).

This happens because recently we added InvokerResult - wrapper for invoker results; so the invocation method always return non-null value.

Activity

Show:

Matthew Lee August 17, 2012 at 2:37 PM

Committed on:
Portal 6.1.x CE GIT ID: e0a5a4f726e52ff80774cd764e75e50741042b83.
Portal 6.2.x GIT ID: 57f46a18306ca0a63434c04c2e97a99ba743204d.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Branch Version/s

6.1.x

Backported to Branch

Committed

Fix Priority

3

Caused by

Another improvement

Priority

Zendesk Support

Created July 20, 2012 at 6:23 AM
Updated June 24, 2023 at 3:57 PM
Resolved July 23, 2012 at 10:08 AM

Flag notifications