I posted a very bare bones project on github, jquery.jsonpath uses jquery.collection(Ariel Flesler flesler.blogspot.com), json2.js (JSON.org), and Stefan Goessner (goessner.net) jsonpath to provide a simple jquery-like selector engine for large javascript objects. I'd like it to become a useful foundation for plugins that are 'template-centric', eg i18n, capitalize, title, lorem ipsum, etc. Seems useful to me and very jquery-like thanks to jquery.collections.
Cheers On Thu, Oct 30, 2008 at 10:10 AM, chris thatcher < [EMAIL PROTECTED]> wrote: > Becuase e4x has limited support in browsers, (firefox has awesome support > for it) I had started a plugin that used jsonpath ( > http://goessner.net/articles/JsonPath/) and jquery.collection ( > http://flesler.blogspot.com/2008/01/jquerycollection.html) together to > provide a jquery-like way to query large js objects. The project got dusty, > mainly because it tried to cram too much functionality into it and it became > unwieldy. > > I'm going to take it off the shelf for a few hours this morning and hack it > down into a more useful core. My personal goal for creating it is to use it > in templates and allow jquery-like plugins to add functionality to it. > > If your curious I'll create a github project and post the code up there. > > Thatcher > > > On Thu, Oct 30, 2008 at 9:55 AM, John Resig <[EMAIL PROTECTED]> wrote: > >> >> It sounds like what you're looking for is something like E4X: >> http://en.wikipedia.org/wiki/E4X >> >> Unfortunately it doesn't have very good browser support so it isn't >> used very frequently. >> >> --John >> >> >> >> On Thu, Oct 30, 2008 at 3:32 AM, Elijah Insua <[EMAIL PROTECTED]> wrote: >> > First Post!~ >> > >> > What do you think about using the xpath engine for querying object >> > structures? >> > To my understanding the 'only' way to actually run xpath/xquery >> > functionality on >> > xml is to first convert it into an object. Why not convert it into a >> > standard object >> > that can be queried generically? >> > >> > -- Elijah >> > >> > > >> > >> >> >> >> > > > -- > Christopher Thatcher > -- Christopher Thatcher