Open MudassarBashir opened 9 years ago
Looks like a hangover from the book's first edition in which we used Prototype. That should be referring to jQuery and it probably shouldn't mention eval()
. I'm not sure that's how jQuery actually processes the JSON into a Javascript object.
The paragraph under listing 8.14 mentions that:
...Prototype automatically evals()the return value into a native JavaScript object.
I got a bit confused as to why it's talking about Prototype when we have been using jQuery in the book.