ATSLIB/contrib/json-c/json_ML

This package contains an API in ATS of quasi ML-style that is directly based on the json-c package.


  • jsonval
  • jsonvalist_vt
  • fprint_jsonval
  • fprint_jsonvalist
  • fprint_labjsonvalist
  • jsonval_ofstring
  • jsonval_tostring
  • json_object2val0
  • json_object2val1
  • jsonval_objectify

  • jsonval

    Synopsis

    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)

    jsonvalist_vt

    Synopsis

    vtypedef
    jsonvalist_vt = List0_vt (jsonval)

    fprint_jsonval

    Synopsis

    fun fprint_jsonval (out: FILEref, x: jsonval): void

    fprint_jsonvalist

    Synopsis

    fun fprint_jsonvalist
      (out: FILEref, xs: jsonvalist): void

    fprint_labjsonvalist

    Synopsis

    fun fprint_labjsonvalist
      (out: FILEref, lxs: labjsonvalist): void

    jsonval_ofstring

    Synopsis

    fun jsonval_ofstring (str: string): jsonval

    jsonval_tostring

    Synopsis

    fun jsonval_tostring (jsv: jsonval): Strptr1

    json_object2val0

    Synopsis

    fun json_object2val0 (jso: json_object0): jsonval

    json_object2val1

    Synopsis

    fun json_object2val1 (jso: !json_object0): jsonval

    jsonval_objectify

    Synopsis

    fun jsonval_objectify (jsv: jsonval): json_object0

    This page is created with ATS by Hongwei Xi and also maintained by Hongwei Xi. SourceForge.net Logo