Load a JSON string into a data structure.
Also, create a new data structure and serialize it into JSON.

Use objects and arrays (as appropriate for your language)
and make sure your JSON is valid (https://jsonformatter.org).

declare
  [JSON] = {Module.link ['JSON.ozf']}
 
  {System.show {JSON.decode "{ \"foo\": 1, \"bar\": [10, \"apples\"] }"}}
 
  Sample = object(blue:array(1 2) ocean:"water")
  {System.showInfo {JSON.encode Sample}}