JSONEditor.ahk
JsonBox.ahk (Require Jxon.ahk by CoCo)
JsonBox(ByRef json = "" [, title = "", mode = "code", gui_option = "w700 h560"])
- json: Json string or AHK object
- title: Window title
- mode: Value can be tree, view, form, code, text
Code: Select all
obj := { items: ["a", "b"], key1: "value2", key2: "value2" }
JsonBox(obj)
Code: Select all
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
whr.Open("GET", "https://httpbin.org/get?key=val")
whr.Send()
JsonBox(whr.ResponseText,, "view") ; Display the data in 'view' mode
JsonBox(whr.ResponseText)
MsgBox % whr.ResponseText