[orkut-developer] Re: JSON Parse Errors

2008-02-15 Thread Arne Roomann-Kurrik
Thank you for sending the URL. Sorry for the delay in my response, but I'm posting my response here as other developers may find some help. Orkut expects JSON keys to be enclosed in quotes. The url returned: { value_1 : "3", value_2 : "5"} To be parsed by the make request function, this should

[orkut-developer] Re: JSON Parse Errors

2008-02-15 Thread Nikhil Gupte
Hi Arne, I've emailed the URL to you. On Feb 16, 12:04 am, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]> wrote: > Hi Nikhil, > > Could you share the URL that you are fetching? If you don't want to share > this publicly, please email it to me. > > Thanks, > ~Arne > > On Fri, Feb 15, 2008 at 1:49 A

[orkut-developer] Re: JSON Parse Errors

2008-02-15 Thread Arne Roomann-Kurrik
Hi Nikhil, Could you share the URL that you are fetching? If you don't want to share this publicly, please email it to me. Thanks, ~Arne On Fri, Feb 15, 2008 at 1:49 AM, Nikhil Gupte <[EMAIL PROTECTED]> wrote: > > Forgot to mention, the JSON document contains: > {b: "b", a: "a"} > > This is

[orkut-developer] Re: JSON Parse Errors

2008-02-15 Thread Nikhil Gupte
Forgot to mention, the JSON document contains: {b: "b", a: "a"} This is also seen in response.text On Feb 15, 2:44 pm, Nikhil Gupte <[EMAIL PROTECTED]> wrote: > Jason, > > Thanks for looking into this. Following is my code: > -START- > function fetchData(url, callback) { > var params =

[orkut-developer] Re: JSON Parse Errors

2008-02-15 Thread Nikhil Gupte
Jason, Thanks for looking into this. Following is my code: -START- function fetchData(url, callback) { var params = {}; params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.JSON; gadgets.io.makeRequest(url, function(response) { console.log(response)

[orkut-developer] Re: JSON Parse Errors

2008-02-14 Thread Jason
When are you seeing this error? Is this after the JSON string is returned from your server? If so, how are you parsing it? JSON responses are stored in the response object's 'data' property (response.data as opposed to response.text) so this may be part of your problem. If you are able to post a c