IBM Support

webMethods Knowlegebase : Flow Service "pub.json.documentToJSONString" converting an empty String to NULL on the JSON representation (1790304)

Troubleshooting


Problem

User observes a strange behaviour while using "pub.json.documentToJSONString" where it is converting an empty string "" to NULL on the JSON representation.

How to control the behaviour of the flow service "pub.json.documentToJSONString" with respect to handling the Null or Blank values in a String List?

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Service Development (WED)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows 10 Professional Edts"}],"Version":"10.1"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Service Development (WED)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows 10 Professional Edts"}],"Version":"10.1"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSQKXP","label":"IBM webMethods API Management"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Service Development (WED)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows 10 Professional Edts"}],"Version":"10.1"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
19 March 2025

UID

ibm17192479