Json Request cannot map empty values into Clipboard
I have a Service REST that receives this json request:
{ "input": { "msisdn": "1234567890" }, "output": { "attributi": { "tecnologia": "", "prepagato": "example" } } }
On the Clipboard, in Attributi class, I see only prepagato property is shown, while tecnologia property is not shown (see clipboard.jpg attached). My need is to also show the empty properties, as tecnologia. I made the following attempts:
I have a Service REST that receives this json request:
{ "input": { "msisdn": "1234567890" }, "output": { "attributi": { "tecnologia": "", "prepagato": "example" } } }
On the Clipboard, in Attributi class, I see only prepagato property is shown, while tecnologia property is not shown (see clipboard.jpg attached). My need is to also show the empty properties, as tecnologia. I made the following attempts:
- on Service REST, in Request tab, i set Map to="JSON" and Mapping Method="Use legacy method"
- on Service REST, in Request tab, i set Map to="JSON" and Mapping Method="Use JSON data transformation", using Data Transform of the attached image (jsonDT.jpg)
- on Service REST, in Request tab, i set Map to="JSON" and Mapping Method="Use legacy method", and in Activity called by Service REST I Used Data Transform of the attached image (jsonDT.jpg) and then I executed pxConvertStringToPage(tools, myStepPage,Param.jsonData, "json")
For steps 2 and 3 I verified that in Param.jsonData empty properties are correctly present: {"input":{"msisdn":"1234567890"},"output":{"attributi":{"tecnologia":"","prepagato":"example"}}}
All 3 attempts gave the same result (empty properties are not shown).
How can I show empty properties in the Clipboard?