You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When prototype.js loads on page, stringifying an array required double parsing to convert back to array.
F.E: var a = [ 1 ]; var b = JSON.stringify(a); // will output ""[1]"" (string of array to string) instead of "[1]" (array to string) var c = JSON.parse(b); // will output "[1]" (array to string) instead of [1] (array) JSON.parse(c); // will output [1] (array).
Found on potora.jp.
The text was updated successfully, but these errors were encountered:
When prototype.js loads on page, stringifying an array required double parsing to convert back to array.
F.E:
var a = [ 1 ];
var b = JSON.stringify(a); // will output ""[1]"" (string of array to string) instead of "[1]" (array to string)
var c = JSON.parse(b); // will output "[1]" (array to string) instead of [1] (array)
JSON.parse(c); // will output [1] (array)
.Found on potora.jp.
The text was updated successfully, but these errors were encountered: