XLFJSON ;SLC/KCM/TJB - Decode/Encode JSON ;26 Oct 2016
Source file <XLFJSON.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
DECODE(XUJSON,XUROOT,XUERR) |
|
|
ENCODE(XUROOT,XUJSON,XUERR) | ; XUROOT (M structure) --> XUJSON (array of strings)
; Examples: D ENCODE^XLFJSON("^GLO(99,2)","^TMP($J)") ; D ENCODE^XLFJSON("LOCALVAR","MYJSON","LOCALERR") |
|
ESC(X) | ; Escape string for JSON
; X: Required; String to be escaped |
|
UES(X) | ; Unescape JSON string
; X: Required; String to be unescaped |
|
ERRX(ID,VAL) | ; Set the appropriate error message
; switch (ID) -- XERRX ends statement |
|
XERRX | ; end switch
|