This package contains an API in ATS of quasi ML-style that is directly based on the json-c package.
datatype
jsonval =
| JSONnul of ()
//
| JSONint of (json_int)
| JSONbool of (json_bool)
| JSONfloat of (double)
| JSONstring of (string)
//
| JSONarray of (jsonvalist) // array
| JSONobject of (labjsonvalist) // hashtable
// end of [jsonval]
where
json_int = llint
and
jsonvalist = List0 (jsonval)
and
labjsonval = @(string, jsonval)
and
labjsonvalist = List0 (labjsonval)
vtypedef jsonvalist_vt = List0_vt (jsonval)
fun fprint_jsonval (out: FILEref, x: jsonval): void
fun fprint_jsonvalist
(out: FILEref, xs: jsonvalist): void
fun fprint_labjsonvalist
(out: FILEref, lxs: labjsonvalist): void
fun jsonval_ofstring (str: string): jsonval
fun jsonval_tostring (jsv: jsonval): Strptr1
fun json_object2val0 (jso: json_object0): jsonval
fun json_object2val1 (jso: !json_object0): jsonval
fun jsonval_objectify (jsv: jsonval): json_object0
This page is created with ATS by Hongwei Xi and also maintained by Hongwei Xi. |