Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Sub selection of JSON document via URI
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marak Squires  
View profile  
 More options Sep 6 2009, 7:42 am
From: Marak Squires <marak.squi...@gmail.com>
Date: Sun, 6 Sep 2009 04:42:43 -0700 (PDT)
Local: Sun, Sep 6 2009 7:42 am
Subject: Sub selection of JSON document via URI
Is it possible to query the JSON document inside a collection from the
URI?

For example, if I have a collection at: '/data'

And I have the following document: '/data/4b1953c1-7d03-012c-
a18b-4040f67bf8d1'

Which contains the JSON: '{"foo": "bar"}'

How could I perform a GET on a URI like: "/data/4b1953c1-7d03-012c-
a18b-4040f67bf8d1/foo" and return the value "bar"?

I'd like to be able to query/sub select the JSON so I don't have to
return the full document. I'm a bit confused as to how I can do more
robust selector statements server side. Is this the wrong approach?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jon Crosby  
View profile  
 More options Sep 7 2009, 11:51 am
From: Jon Crosby <jon.r.cro...@gmail.com>
Date: Mon, 7 Sep 2009 08:51:13 -0700
Local: Mon, Sep 7 2009 11:51 am
Subject: Re: [cloudkit] Sub selection of JSON document via URI

We discussed this in IRC, but I am replying on the mailing list for
everyone's benefit. Basically, JSONQuery will handle this on the server side
once I merge those changes into the master branch. JSONQuery already
provides this functionality on the client side via the jQuery plugin,
jquery.cloudkit.js. The JSONQuery expression to extract the value of foo
from the object {foo:"bar"} would be ".foo" or
"/data/4b1953c1-7d03-012c-a18b-4040f67bf8d1/.foo".
-Jon

On Sun, Sep 6, 2009 at 4:42 AM, Marak Squires <marak.squi...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »