Hmm ... perhaps it should not do that. I think it should support parsing of string, number and number primitive values. It seems that simply removing that check would make it work.
On Wed, Jan 8, 2014 at 9:27 AM, Daniel Tabuenca <[email protected]> wrote: > It actually does use JSON.parse, but first it checks if the JSON > starts/ends with: > > ```javascript > var JSON_START = /^\s*(\[|\{[^\{])/, > JSON_END = /[\}\]]\s*$/, > ``` > > If it doesn't match those it is not parsed as JSON at all and just > returned as a string. > > > -- > 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. > -- R. Mark Volkmann Object Computing, Inc. -- 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.
