Re: [xml-dev] ten years later, time to repeat it?

From
Robert Koberg <>
To
"Simon St.Laurent" <>
Date
2008-02-12T03:19:52Z
ID
<1202786392.6231.50.camel@rkoberg-laptop>
Thread
Re: [xml-dev] ten years later, time to repeat it?
On Mon, 2008-02-11 at 22:11 -0500, Simon St.Laurent wrote:
> Robert Koberg wrote:
> >> JSON does have a traversable hierarchy - it's just normally cast as 
> >> objects rather than having a separate API for doing the traversal.
> >>
> >> See, for one example:
> >>
> >> http://goessner.net/articles/JsonPath/
> > 
> > Well, it isn't really the same. You can't go up or side ways. Also,
> > after a quick search it was the only project of its kind.
> > 
> > I created something that aids XPath. But I cheat and parse the JSON and
> > add parents and siblings to each object. 
> 
> I think the point to take away here is that most JSON users aren't 
> interested in traversable hierarchies - they just want the data mapped 
> to something they traverse using completely different mechanisms.
> 
> For the minority of users who want explicit traversal, it's definitely 
> possible, if underdeveloped.  I don't think what you're doing is 
> 'cheating' at all.

I agree. Plus, it's probably cheaper to just parse from the top anyway.

-Rob

> 
> Thanks,
> Simon St.Laurent
> Retired XML troublemaker
> http://simonstl.com/