I've got the problem. I tried to encode JavaScript Object to JSON. Here is a preview image of my Sencha app database object:
I need to put it into local session, so I must encode this object. I tried using:
JSON.stringify(db)
and my result is only:
{"version":"1.0"}Ext.Encode(db) - it's Sencha's function
and in result I've got:
undefinied
'db' is an object from the screen.
In need to encode this object with all of data.
Please, help me
[EDIT]
Is any other way to convert JS object to string and put it into local or session storage? Because object can't be stored in session or local storage
dbis not an object literal but a function / class instance