How can get the data stored in the JSON object?

How can get the data stored in the JSON object?  I try StringObject but doesn't work.

  • 0
  • 0
  • 177
  • 2
  • 2

Answers

If you have:

set json = "{""name"":""Sara""}"

 

You can get the data stored :

 

set dynObj = ##class(%DynamicObject).%FromJSON(json)

write dynObj.name