Actually, debugging the app once again, I think we don't need to use parseJson, it comes already parsed. So that would become:
<li repeat="${songs.content.songs}"> \ \- json variable \- data pipeline variable On 30 abr, 14:45, Paresh Joshi <pareshjosh...@gmail.com> wrote: > Arun, > Debugging tip by eduardo helped me resolve the issue. > Please check the > post:http://groups.google.com/group/opensocial-orkut/browse_thread/thread/... > Thanks, > Paresh > > On Apr 30, 10:15 am, eduardorochabr <eduardoroch...@gmail.com> wrote: > > > I was only successful using the following, including the ".content" > > part, after debuging using this tip (item #8): > > >http://groups.google.com/group/opensocial-orkut/tree/browse_frm/threa.... > > > <li repeat="${osx:parseJson(friends.content)}"> > > > Since I am not sure about your actualy JSON structure, try this too: > > > <li repeat="${osx:parseJson(friends.content).friends)}"> > > \ \- json variable > > \- data pipeline variable > > > Remember to declare the osx namespace: > > > <script type="text/os-template" xmlns:os="http://ns.opensocial.org/ > > 2008/markup" xmlns:osx="http://ns.opensocial.org/2009/extensions"> > > > Let me know if it works. > > > On 30 abr, 08:00, "test...@netcarnation.com" > > > <test...@netcarnation.com> wrote: > > > hi, > > > > example: > > > > { > > > friends : [ > > > { > > > name: 'David', > > > interests: 'Cooking', > > > }, > > > { > > > name: 'Charles', > > > interests: 'Hiking', > > > }, > > > { > > > name: 'Mary', > > > interests: 'Football', > > > }, > > > ] > > > > } > > > > By referring to Open Social Templates Developers's Guide in 'Fetching > > > data from a URL ' section the above example is copied to a file and > > > uploaded to server, and using <os:HttpRequest> tag like, > > > > <os:HttpRequest key="friends" href="http://www.servername/foldername/ > > > filename" authz="signed" refreshInterval="1" /> > > > > and by using " <li repeat="${friends}"> " data is iterated and the i > > > tried to print the values for name and interests which gives result > > > 'blank'. > > > > As ${Cur.name} and ${Cur.interests} is displayed blank and i tried to > > > give as ${friends.content.friends.name} and :$ > > > {friends.content.friends.interests} to get values for name and > > > interests but even this displayed as 'blank'. > > > > how to get values for name and interests of all 3 rows from the file > > > which is uploaded to server? > > > > reg, > > > Arun. > > --~--~---------~--~----~------------~-------~--~----~ 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-orkut@googlegroups.com To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---