Loading ...
Sorry, an error occurred while loading the content.

720Re: [json] SQL for JSON?

Expand Messages
  • Peter Michaux
    Feb 9, 2007
      On 2/9/07, Mark Ireland <markincuba@...> wrote:
      > Like so?
      > var data = {[
      > {id:"id1", name:'foo', age:21},
      > {id:"id2", name:'bar', age:35}
      > ]};
      > then data.["id2"].age

      More like SQL. Something like

      SELECT * FROM data WHERE age > 30;

      I don't necessary mean SQL sytnax because that wouldn' work well for
      nested JSON structure. But somethign that can look around the
      structure for matches like a regular expression does for strings to
      pluck out pieces.

    • Show all 11 messages in this topic