[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-04-07 Thread Jota
YEAH! It works!!! tks, Jota On Tue, Apr 7, 2009 at 2:20 AM, Apurv Gupta wrote: > no - you can use os:xParseJson in an expression to interpret app data. > e.g. > userId="@owner" appId="@app" fields="user_data,videos" /> > > ${os:xParseJson(owner_data[owner.id]).json_key} > will give you the js

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-04-06 Thread Apurv Gupta
no - you can use os:xParseJson in an expression to interpret app data.e.g. ${os:xParseJson(owner_data[owner.id]).json_key} will give you the json_key. On Tue, Apr 7, 2009 at 12:55 AM, Jota wrote: > Sorry Apurv, but how can I use this function? > > Do I need to change my current code below: > >

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-04-06 Thread Jota
Sorry Apurv, but how can I use this function? Do I need to change my current code below: to a new call like that? (I know it's not working) How do I call this function on my gadget? regards, Jota On Sun, Apr 5, 2009 at 1:33 PM, apurv wrote: > > > "${owner_data[owner.id]}" > should giv

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-04-05 Thread apurv
"${owner_data[owner.id]}" should give you the Json data as string. Use os:xParseJson to convert it into a JSON object and then you can reference fields inside it. [http://svn.apache.org/repos/asf/incubator/shindig/trunk/java/common/ src/main/java/org/apache/shindig/expressions/OpensocialFunctio

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-04-01 Thread Jota
Hi Eduardo, 1- no good... 2- I've tried this before and it works fine using Javascript Data Pipeline, but after the profile "big bang" to accept just "os/template", it stops! Find below the Javascript that I had used to get data from the SAME JSON: owner_data = opensocial.data.DataContext.getD

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-04-01 Thread eduardorochabr
1. Have you tried just ${title}? 2. Maybe you can open the IFrame in Firebug and use the javascript API for Data Pipeline to debug the data format, have you tried that? On 1 abr, 12:40, Jota wrote: > Hi Eduardo, > thanks for your suggestion, but it's not printing anything too... > > Anyone, ple

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-04-01 Thread Jota
Hi Eduardo, thanks for your suggestion, but it's not printing anything too... Anyone, please HELP ME!!! []'s, Jota On Wed, Apr 1, 2009 at 12:13 AM, eduardorochabr wrote: > > Have you tried the following? > > >${Cur.title} > > > On 31 mar, 16:06, Jota wrote: > > Hi Vijaya, > > I've tried

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-03-31 Thread eduardorochabr
Have you tried the following? ${Cur.title} On 31 mar, 16:06, Jota wrote: > Hi Vijaya, > I've tried this way but I'm still having problems... > > I've tried: > ${owner_data[owner.id][videos][title]} > ${owner_data[owner.id][videos].title} > ${owner_data[owner.id][videos.title]} > ${owner_d

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-03-31 Thread Jota
Hi Vijaya, I've tried this way but I'm still having problems... I've tried: ${owner_data[owner.id][videos][title]} ${owner_data[owner.id][videos].title} ${owner_data[owner.id][videos.title]} ${owner_data[owner.id][videos[title]]} ${owner_data[owner.id][videos][0].title} ${owner_data[owner.id][vide

[orkut-developer] Re: Accessing JSON data using Data Pipeline

2009-03-31 Thread Vijaya
To parse, the JSON data, you can use something like: ${owner_data [owner.id][videos]} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-ork