This works, for example, I get my Json from the server,
websocket.onmessage = function(event)
from websocket actually and later, when I want to decode my json,
var json = Ext.decode(event.data);
and where do I need my string for example
json.map.MessageType
My json looks like this:
mpty":false,"map":{"MessageText":"Ciao, how are you?","MessageType":"IN"},"hashtable":{"MessageText":"Ciao, how are you?","MessageType":"IN"},"persistData":{"MessageText":"Ciao, how are you?","MessageType":"IN"}}
Hope this helps, cheers!
Djordje arsenovic
source share