'RenderJSON' activity converting empty string('') to 'null'

'RenderJSON' activity converting empty string('') to 'null'

book

Article ID: KB0082476

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for REST and JSON 2.0.0, 2.0.1, 2.1.0

Description

While using Render JSON activity, if we pass blank value('') for some field in XML data, the rendered JSON will add the 'null' value for the respective field. This might cause issue while passing this data to further activity.

 

Issue/Introduction

'RenderJSON' activity converting empty string('') to 'null'

Environment

Operation Systems: All

Resolution

To resolve this, if customer is using REST plugin version 2.0.0, they will need to install REST JSON plugin HF06 and above, after applying the Hotfix, please setting the property in your designer.tra and restart the Designer:
============
 java.property.com.tibco.plugin.restjson.xml2json.empty2null=false
============
If customer is using higher version of REST JSON plugin 2.0.1 or 2.1.0 , Please add the above property in the designer.tra and restart the Designer. 

To apply this property in runtime, please add the property into application.tra file and restart the project in admin