asp classic - jQuery.param is asp? -
asp classic - jQuery.param is asp? -
i know if there asp resource implement same functionality of jquery.param. creating json response on asp, , characters (example: "/") have received errors "uncaught syntaxerror: unexpected token h jquery-1.8.3.min.js:2 v.extend.parsejson jquery-1.8.3.min.js:2" while trying "jquery.parsejson" response. so, think i, need replace "/" "%5c" , on. there anyway "response.write" without treating characters need replace manually?
i'll appreciate help much.
http://jsonlint.com/ :
{ "name": "hmp", "url": """ } parse error on line 3:
..."hmp", "url": """ } ----------------------^ expecting '}', ':', ',', ']'
you have write own function classic asp has no such function. escape " have utilize " (classic asp vbscript):
dim jsonstr jsonstr = "{" &_ " ""name"": ""hmp""," &_ " ""url"": """" &_ "}" response.write jsonstr you not have escape \ or / in classic asp vbscript
here class implements useful functionality when comes json generation
jquery asp-classic
Comments
Post a Comment