Jul 25, 2012, 7:25 AM
[CLOSED] JSON Decode Exception
According to the changelog now I use FormPanelResult in my MVC application
In v1.x of Ext.NET in one of my request I received this json in result.responseText property:
119. The Server AjaxFormResult has been renamed to FormPanelResult.
{success:true,extraParams:{"reboseValue":"0000,00","reboseMask":"9999,99","reboseRegex":"^\\d{0,4}\\,\\d{0,2}$","reboseRegexText":"hhhh,mm","redondeoValue":"000,00","redondeoMask":"?999,99","redondeoRegex":"^[\\ \\+\\-]{0,1}\\d{0,3}\\,\\d{0,2}$","redondeoRegexText":"hhh,mm"}}
But now in v2.x I receive this one:{success:true,extraParams:{"reboseValue":0000,00,"reboseMask":9999,99,"reboseRegex":"^\\d{0,4}\\,\\d{0,2}$","reboseRegexText":"hhhh,mm","redondeoValue":000,00,"redondeoMask":"?999,99","redondeoRegex":"^[\\ \\+\\-]{0,1}\\d{0,3}\\,\\d{0,2}$","redondeoRegexText":"hhh,mm"}}
And when I try to decode it it throws me an exception.Ext.decode(result.responseText)
It seems that when I add strings with COMMA it hasn't been quoted as expected in Ext.decode
Last edited by Daniil; Sep 28, 2012 at 4:28 PM.
Reason: [CLOSED]