The above should work, so the question is, what is the content of pData. Do you can share a sample with us?
Also, you can write the above somewhat shorter too and you can access all the properties either via propertyname or via the %Get() method.
I assume, you have a string like this:
set pData="{""Name"":""Joe"", ""Age"":50}"the you can do this
set object={}.%FromJSON(pData)
write object.Name // Joe
write object.%Get("Name") // Joe
write pData // {"Name":"Joe", "Age":50}- Log in to post comments