How exactly does this os:xParseJson works? I mean, take a look at this
sample of JSON below:
" {"paginacao": {"registros_carregados": 80, "per_page": 80,
"total_items": 40741}, "usuarios": [{"usuario": {"posicao_ranking": 1,
"opensocial_code": "02240857685455061621", "nome": "J\u00e9ssica
Priscilla", "thumb":
(...)
"orkut_code": "10211723885219973164", "num_trocas": 13, "pontos":
3550}}]} "
If I request this JSON in a key named "ranking", how can I get the
attribute "registros_carregados", for example?
Thanks in advance,
Jorge
On 2 abr, 12:29, Apurv Gupta <[email protected]> wrote:
> You can use os:xParseJson which takes a string and returns a json object.
>
>
>
> On Thu, Apr 2, 2009 at 8:21 PM, Jota <[email protected]> wrote:
> > Does we have any command like:
>
> > gadgets.json.parse
> > or
> > gadgets.json.stringify
>
> > to use with profile os/template?
>
> > tks,
> > Jota
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---