The xml() expression function returns the XML version for a string that contains a JSON object.
You might notice a floating-point precision issue when this function used to convert a string that contains a JSON object with decimal numbers as shown in the below sample.
This is a known issue due to the below third party NewtonSoft package used by the function that exhibits this behavior.
NewtonSoft loads the floating point numbers into .NET double type, which injects this precision loss when it serializes them back to string. Per default at https://www.newtonsoft.com/json/help/html/P_Newtonsoft_Json_JsonSerializerSettings_FloatParseHandlin...
At the moment, you could workaround this behavior by providing the value as a string as shown in the below sample.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.