ENCODE(VVROOT,VVJSON,VVERR) |
This API is used for converting a local or global
array (M structure) into a JSON object.
Examples:
D ENCODE^VPRJSON("^GLO(99,2)","^TMP($J)")
D ENCODE^VPRJSON("LOCALVAR","MYJSON","LOCALERR")
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
VVROOT |
Input |
Closed array reference for M representation of
object.
|
VVJSON |
Both |
Destination variable for the string array formatted
as JSON.
|
VVERR |
Both |
Contains error messages, defaults to
^TMP("VPRJERR",$J).
|
|
DECODE(VVJSON,VVROOT,VVERR) |
This API is used for converting a JSON object into a
local or global array (M structure).
Examples:
D DECODE^VPRJSON("MYJSON","LOCALVAR","LOCALERR")
D DECODE^VPRJSON("^MYJSON(1)","^GLO(99)","^TMP($J)")
|
VARIABLES |
TYPE |
VARIABLES DESCRIPTION |
VVJSON |
Input |
String/array containing serialized JSON object.
|
VVROOT |
Both |
Closed array reference for M representation of
object.
|
VVERR |
Both |
Contains error messages, defaults to
^TMP("VPRJERR",$J).
|
|