HMPJSON ;SLC/KCM,ASMR/RRB - Decode/Encode JSON;9/25/2015 10:15
Source file <HMPJSON.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
DECODE(VVJSON,VVROOT,VVERR) | ||
ENCODE(VVROOT,VVJSON,VVERR) | ; VVROOT (M structure) --> VVJSON (array of strings)
; Examples: D ENCODE^HMPJSON("^GLO(99,2)","^TMP($J)") ; D ENCODE^HMPJSON("LOCALVAR","MYJSON","LOCALERR") |
|
ESC(X) | ; Escape string for JSON
|
|
UES(X) | ; Unescape JSON string
|
|
ERRX(ID,VAL) | ; Set the appropriate error message
; switch (ID) -- XERRX ends statement |
|
XERRX | ; end switch
|