Hi,
I'm using some CDTs to generate JSON to an Integration, and would like to *not* have JSON attributes where a Text field is blank. By default, all the attributes for my CDT are generated in the JSON string when I run the CDT through a!toJson.
Is there any way I can call a!toJson to optionally suppress blank attributes? Or, has someone written a hack that applies this kind of "filter" after the jsonString has been generated?
I see C# and Java solutions for this kind of thing, but not sure how to do this in Appian. Is there a plugin, something on AppMarket, etc.?
Thanks for any help!
Discussion posts and replies are publicly visible
There is no OOTB way to do that. Is this an issue on the other side of the integration? JSON in general is meant to be quite relaxed about whether a field is there or not.
Yeah, an issue with the system I'm communicating with. See my reply to Stewart for more details.