Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points
Print Page as PDF
Routine: YSBJSON

Package: Mental Health

Routine: YSBJSON


Information

YSBJSON ;SLC/DJE - Encode JSON ; Apr 01, 2021@16:33

Source Information

Source file <YSBJSON.m>

Entry Points

Name Comments DBIA/ICR reference
ENCODE(XUROOT,XUJSON,XUERR) ; XUROOT (M structure) --> XUJSON (array of strings)
SEROBJ(XUROOT) ; Serialize into a JSON object
SERARY(XUROOT) ; Serialize into a JSON array
SERNAME(XUSUB) ; Serialize the object name into JSON string
SERVAL(XUROOT,XUSUB) ; Serialize X into appropriate JSON representation
CONCAT ; come here to concatenate to JSON string
ISVALUE(XUROOT,XUSUB) ; Return true if this is a value node
NUMERIC(X) ; Return true if the numeric
JNUM(N) ; Return JSON representation of a number
UCODE(C) ; Return \u00nn representation of decimal character value
ERRX(ID,VAL) ; Set the appropriate error message
; switch (ID) -- XERRX ends statement
XERRX ; end switch
ESC(X) ; Escape string for JSON
Info |  Source |  Entry Points