VPRJSON ;SLC/KCM -- Decode/Encode JSON ;8/14/13 11:22
Source file <VPRJSON.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| DECODE(VVJSON,VVROOT,VVERR) | 
 
  | 
|
| ENCODE(VVROOT,VVJSON,VVERR) | ; VVROOT (M structure) --> VVJSON (array of strings)
 ; Examples: D ENCODE^VPRJSON("^GLO(99,2)","^TMP($J)") ; D ENCODE^VPRJSON("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
 |