JSON string field does not have the double quotes
I have a json object coming in on a service with a field that has "NaN" as its value.
"ReferralInOutOfNetworkCd": "NaN",
In my DTL, I do a straight copy. yet what goes outbound is NaN, without being wrapped in double quotes
"consulting_provider_network_ordering_rd":NaN,
Has anyone experience this? If so, did you find a way to fix or work around it?
Product version: IRIS 2024.1
Discussion (1)0
Comments
First, there is no NaN in JSON.
set dynObj = {"val":($double("NAN"))}
write dynObj.val + 123 ---> "NAN
zwrite dynObj
dynObj={"val":($double("NAN"))} ; <DYNAMIC OBJECT>
/* Question @devcommunity manager: how to exit the "insert code block" function? */
Second, red this for more understanding