get users from JSON

Solved!
Posted in General by remco koffijberg Thu Sep 22 2016 10:15:31 GMT+0000 (UTC)·3·Viewed 1,010 times

Hi I tried this: Buddy.get('/users', function(err, result) { if (result.success) { var parsedData = JSON.parse(result); alert (parsedData); } else { // Otherwise log the error console.log(err); } } ); it throws this error: N910F Uncaught SyntaxError: Unexpected token o in JSON at position 1 The return is a JSON, or i'm a missing something here...?
remco koffijberg
Sep 22, 2016

I the mean time i moved to Parse. It works. So, i'm very happy and if this is not a bug in the SDK, then just leave it!

BTW is there a pricing plan for Parse/Buddy on the site?

remco koffijberg
Sep 22, 2016

O and here is the answer : Your data is already an object. No need to parse it. The javascript interpreter has already parsed it for you.

Bradley Serbus
Sep 23, 2016

Hi Remco,

Indeed, you are correct, it's already parsed. We are working on our detailed pricing, but we have pledged to match current Parse pricing. Thanks for using Parse on Buddy!

Brad


Bradley Serbus marked this as solved
Markdown is allowed