Every JSON serialization utility or library I've used is seems to be broken, and I cannot get the logical explanation on this.
Let me explain. I run following code in Firebug for JSON libraries for .NET, probably for other languages.
I just check in Firefox, when I run:
var obj1 = "test";
var obj1serialization = JSON.stringify(obj1);
The output is ""test"". But this is invalid JSON object! So when I tried to re-create object from that serialized JSON, it failed, stating that JSON string is incorrect:
var obj2 = JSON.parse(obj1serialization);
Strings are objects. But their serialization in JSON not working. Is there any logical explanation of this situation?