set-string jd unquoted = {"menu":\
{"id": "file",\
"value": 23091,\
"active": false,\
"popup":\
{"menuitem":\
[{"value": "New", "onclick": "CreateNewDoc with\uD834\uDD1Emusic"},\
{"value": "Open", "onclick": "OpenDoc() with \uD834\uDD1E\uD834\uDD1E"},\
{"value": "Close", "onclick": "\uD834\uDD1ECloseDoc()"}\
]\
}\
}\
}
json-doc jd status st error-text et error-position ep to nj
if-true st not-equal GG_OKAY
@Error [<<p-out et>>] at [<<p-num ep>>]
exit-handler -1
end-if
start-loop
read-json nj key k value v type t next
if-true t equal GG_JSON_TYPE_NONE
break-loop
end-if
@Key [<<p-out k>>]
@Value [<<p-out v>>]
@Type [<<p-num t>>]
@--------
end-loop
@
json-doc delete nj
Copied!
Key ["menu"."id"]
Value [file]
Type [0]
--------
Key ["menu"."value"]
Value [23091]
Type [1]
--------
Key ["menu"."active"]
Value [false]
Type [3]
--------
Key ["menu"."popup"."menuitem"[0]."value"]
Value [New]
Type [0]
--------
Key ["menu"."popup"."menuitem"[0]."onclick"]
Value [CreateNewDoc withš¯„˛music]
Type [0]
--------
Key ["menu"."popup"."menuitem"[1]."value"]
Value [Open]
Type [0]
--------
Key ["menu"."popup"."menuitem"[1]."onclick"]
Value [OpenDoc() with š¯„˛š¯„˛]
Type [0]
--------
Key ["menu"."popup"."menuitem"[2]."value"]
Value [Close]
Type [0]
--------
Key ["menu"."popup"."menuitem"[2]."onclick"]
Value [š¯„˛CloseDoc()]
Type [0]
--------
Copied!