Hi All,
See code below. We don't want to %FromJSON interpret the data.
We're creating a method to convert json to csv but we don't want to convert/interpret any of the data
The write in the code snipped below will give 220 as weight instead of 220.00.
Does anyone now a way/method to don't interpret the data without put "" on the values?
Class Tmp.test
{
ClassMethod help()
{
set src = "{""name"" : ""greg"", ""weight"" : 220.00 }"
set obj = ##class(%DynamicAbstractObject).%FromJSON(src)
write obj.name,!
write obj.weight,!
return $$$OK
}
}.png)

.png)
What is Open AI?

