Re: [AOLSERVER] Best way to do json in aolserver

2015-04-13 Thread Bernhard van Woerden
Our take on this was to define a list based string literal called tson to
avoid the lossy problem.
https://github.com/qcode-software/qcode-tcl/blob/master/doc/procs/tson2json.md

Bernhard

On 13 April 2015 at 07:01, Jeff Rogers  wrote:

> 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
>
>
>
>
> --
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live
> exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> ___
> aolserver-talk mailing list
> aolserver-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/aolserver-talk
>
--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk


Re: [AOLSERVER] Best way to do json in aolserver

2015-04-12 Thread Jeff Rogers
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



--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk


[AOLSERVER] Best way to do json in aolserver

2015-04-12 Thread Brad Chick
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?

Thanks

-- 
==
BRAD CHICK
==

b...@chickcentral.com
734.662.1701 (h)
734.646.9372 (m)

"Make Some Time for Wasting!"
 _
  | |
   ___| |__   ___  ___ _ __ ___
  / __| '_ \ / _ \/ _ \ '__/ __|
  (__| | | |  __/  __/ |  \__ \
  \___|_| |_|\___|\___|_|  |___/



--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
___
aolserver-talk mailing list
aolserver-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aolserver-talk