Hello Team,
I am getting a JSON string as input in which some of the fields are optional but source system sends null as part of it. When I am trying to convert it to xmlString,
I am getting null tags as well which I don’t want to receive.
I can overcome this situation by checking null value, if not null, assigning it to a different doc and then convert it to xmlString but there are so many fields as
input so I don’t want to follow this one. As part of wmpublic.xmldocumenttoxmlstring BIS we have input parameter properties like generateRequiredTags,generateNilTags.
I tried to set both as true in one case and false in other case but still I am getting null tags.
Ex.
Input JSON String:
{
“input”:
{
“a”:“a value”,
“b”:“b value”,
“c”:null
}
}
XML String:
a valueb value
Expectation:
a valueb value
Kindly help.