But it's NOT technically correct JSON. The JSON RFC clearly states that the 
top-level item is either an object or an array, not a value.


On Tuesday, January 7, 2014 9:46:37 PM UTC-7, Sander Elias wrote:
>
> Hi Mark,
>
> So the raw text you get is a string. This is not that surprising, once you 
> have written a JSON parser :)
> to be short, most JSON parsers expect an [ or an { as first token, and if 
> not found, most of the times, they just give back what is found.
> While your response is technically correct JSON, most parsers don't handle 
> single value responses.
>
> Regards
> Sander
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to