[e-lang] deJSONKit - serialization as JSON from E
Kevin Reid
kpreid at mac.com
Fri May 15 18:50:21 EDT 2009
An improved version of my old deJSONKit[1] is now in the E(-on-Java)
standard library at org.erights.e.elib.serial.deJSONKit.
Documentation:
JSON ( http://www.json.org/ ) kit for Data-E.
Data-E has no builtin data structures but has calls and exits,
whereas JSON has builtin lists and maps but no calls or general exits.
To reconcile this, deJSONKit specially handles the calls
__makeList.run
__makeMap.fromColumns/2
and the exits
__makeList
__makeMap
null
false
true
NaN (nonstrict mode)
Infinity (nonstrict mode)
to map between them and JSON constructs.
Note that even in strict mode (the default), deJSONKit operates
on JSON /value/s, not JSON /object/s; it does not require that the
root of the subgraph be a JSON object (E map).
[1] http://www.eros-os.org/pipermail/e-lang/2004-September/010076.html
--
Kevin Reid <http://homepage.mac.com/kpreid/>
More information about the e-lang
mailing list