I'm creating a JS object like this
var eleDetailsTop = new Array();
var j = 0;
var id = "ele"+j;
eleDetailsTop[id] = {id: id, size : "40%", sizeLabel : 12, type : "image", title : "Image"};
Now, I'm trying to convert this object to a JSON...
var fields = JSON.stringify(eleDetailsTop);
So, my problem is, this only gives an empty result.
Here is what I got when I debugged with FireBug
As you can see there is another object called wrappedJSobject
inside this. If you checked inside it, you can see another wrappedJSobject
as so on...
Why is this ? Why is this weird ?