bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gawk] JSON


From: Andrew J. Schorr
Subject: Re: [bug-gawk] JSON
Date: Sat, 13 Dec 2014 14:59:26 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

Hi Arnold,

On Thu, Dec 04, 2014 at 10:14:15PM +0200, Aharon Robbins wrote:
> Andy - about JSON, I'm not an expert, but it looks like it could be
> easily modelled as a gawk multidimensional array, no?

I think JSON is considered to be somewhat similar to XML, so I'm imagining a
SAX-type approach similar to the current XML library.  This can be easily done
using the "yajl" library, which uses a SAX streaming approach. 
   https://lloyd.github.io/yajl/
It should then be possible to layer on top an awk library to load the JSON data
into an array, if the user prefers a DOM approach.

Regards,
Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]