From: Jeff R. <dv...@di...> - 2015-04-13 06:00:47
|
Brad Chick wrote: > AOLserver community, > > I need to generate and parse json in my aolserver web app. Seems like it > should be easy enough. But there are no aolserver modules that I can find. > > I did find: tcljson > @ > https://code.google.com/p/aolserver/source/browse/trunk/modules/tcljson/?r=103 > > But can't seem to get it to build. > > What is the easiest/best way to get aolserver to handle json? Hi Brad, Check out rl_json - https://github.com/RubyLane/rl_json It's a plain tcl extension, so it's not aolserver (or naviserver) specific, but it was written to be used in a naviserver application, so it integrates perfectly well there. There are some other packages listed on the Tcler's Wiki at http://wiki.tcl.tk/13419. There is a json package included in tcllib, but I would recommend avoiding it as its json2dict conversion is lossier than it needs to be, making round trips essentially impossible. -J |