-
9 Mar 2012 12:35 AM #1
Unanswered: a problem in ST2.0 on Ext.decode(json string).Help!
Unanswered: a problem in ST2.0 on Ext.decode(json string).Help!
var json='{"a":"\d{4}"}';
var d=Ext.decode(json);
then I got a object d with a property a which value is 'd{4}', the '\' was lost. but this worked properly in ExtJs.
Could anybody help me to solve this problem?
-
9 Mar 2012 4:34 AM #2
From first glance I would say that your string is not encoded properly I managed to get the result you wanted with:
I was just interested in you problem (I like puzzlesCode:var json=Ext.encode('{a:\"\\d{4}\"}'); var d=Ext.decode(json);
) so I hope I'm of help and not hinderance!


Reply With Quote