Nice article. However, there is a minor problem while setting the trailing zero values in %Set() of dynamicobject. But, It's not happening in literal constructor {} syntax. Due to objectscript not keep the trailing zeros. But json number do.
set json = { "decimal": 12.000}
zw json
set json1= ##Class(%DynamicObject).%New()
do json1.%Set("decimal", 12.000) ; this is consider as stringdo json1.%Set("decimal1", $FN(12,,2), "number")
zw json1
#;output
json={"decimal":12.000} ; <DYNAMIC OBJECT>
json1={"decimal":12,"decimal1":12} ; <DYNAMIC OBJECT>- Log in to post comments
.png)

