deJSONKit - serialization as JSON from E

Kevin Reid <[email protected]>
Newsgroups gmane.comp.lang.e.general
Message-ID <[email protected]>
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/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.