Did a quick search on the system for .burgerFlipper examples parsing json and surprisingly found several. Here is one of them:
jsonText=$"{"menu":: {
"header":: "SVG Viewer",
"items":: [
{"id":: "Open"},
{"id":: "OpenNew", "label":: "Open New"},
null,
{"id":: "ZoomIn", "label":: "Zoom In"},
{"id":: "ZoomOut", "label":: "Zoom Out"},
{"id":: "OriginalView", "label":: "Original View"},
null,
{"id":: "Quality"},
{"id":: "Pause"},
{"id":: "Mute"},
null,
{"id":: "Find", "label":: "Find..."},
{"id":: "FindAgain", "label":: "Find Again"},
{"id":: "Copy"},
{"id":: "CopyAgain", "label":: "Copy Again"},
{"id":: "CopySVG", "label":: "Copy SVG"},
{"id":: "ViewSVG", "label":: "View SVG"},
{"id":: "ViewSource", "label":: "View Source"},
{"id":: "SaveAs", "label":: "Save As"},
null,
{"id":: "Help"},
{"id":: "About", "label":: "About Adobe CVG Viewer..."}
]
}}$"
; Assemblies used.
ObjectClrOption("useany", 'System.Xml.Linq')
ObjectClrOption("useany", 'System.Runtime.Serialization')
; Load the json text into a byte array.
Encoding = ObjectClrNew('System.Text.Encoding')
ByteArrayJson = Encoding.UTF8.GetBytes(jsonText)
;Creates An XmlDictionaryReader that can process JavaScript Object Notation (JSON) data.
objJsonRWFactory = ObjectClrNew('System.Runtime.Serialization.Json.JsonReaderWriterFactory')
XmlDictionaryReaderQuotas = ObjectClrNew('System.Xml.XmlDictionaryReaderQuotas')
objReader = objJsonRWFactory.CreateJsonReader( ByteArrayJson, XmlDictionaryReaderQuotas.Max)
objXElement = objectClrNew("System.Xml.Linq.XElement")
objRoot = objXElement.Load(objReader)
;; Create a few XName objects for later use.
objXName = objectClrNew("System.Xml.Linq.XName")
objNameItems = objXName.Get("items")
objNameItem = objXName.Get("item")
objNameId = objXName.Get("id")
; Get the Id values.
objColMenus = objRoot.Elements(objXName.Get("menu"))
foreach objMenus in objColMenus
objColItems = objMenus.Elements(objNameItems)
foreach objItems in objColItems
objColItem = objItems.Elements(objNameItem)
foreach objItem in objColItem
objColId = objItem.Elements(objNameId)
foreach objId in objColid
Pause("objId.Value", objId.Value)
next
next
next
next