Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 799 Bytes

File metadata and controls

30 lines (25 loc) · 799 Bytes

AutoHotkey GUI using jsoneditor (https://github.com/josdejong/jsoneditor)

JSONEditor.ahk

Screenshot

JsonBox.ahk

(Require Jxon.ahk by CoCo)

JsonBox(ByRef json = "", title = "", mode = "view", gui_option = "w700 h560")

Parameters:

  • json: Json string or AHK object
  • title: Window title
  • mode: Value can be tree, view, form, code, text

Examples:

obj := { items: ["a", "b"], key1: "value2", key2: "value2" }
JsonBox(obj)
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