1426Re: [json] Re: json2 vs FF3 behaviour - jsonstring in array
So if you do
var foo = ["bar"] + " baz";
["bar"] will be converted into "bar" and you'll have foo === "bar baz"
and String["foo"]) === "foo"
Then when you send an array to a function expecting a string, and this function doesn't check the type of the parameter ( or force it to string), you'll have what you get
Le 17 d�c. 2009 � 11:45, nostalgiker a �crit :
but i was actually wondering why IE8 and FF3.5+ allow this with their native JSON objects - passing an array with one element to parse()
so does the jquery.json pluggin - which is unmaintained. that is why i switched to json2... where i noticed that it doesnt support this, but everybody else seems to.
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>