Hi guys,
I need to write some object to SQLite database. In order to do that I need to serialize this object first.. It has many fields and some fields are objects with some fields by themselves.
I have read how to serialize with JSON but it doesn’t work for me.. ?
This is what I have done:
[CODE]expression = window.getSelection();
expressionRange = expression.getRangeAt(0);
expStartNode = expression.anchorNode;
I get the beginning of the selection I made in expStartNode.
At this point I have expStartNode having an object I want to serialize.
Now JSON claims to do this in order to serialize:
[CODE]p1 = JSON.stringify(expStartNode);
But what I get in p1 is empty brackets…
Anybody has an idea?
Thanks