TryCF Gist · GitHub
source link: https://gist.github.com/trycf/ce06d0dfaf80b105688ea0a9ed0368e2
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
TryCF Gist · GitHub
Instantly share code, notes, and snippets.
<cfscript> public struct function test (str){ dump(str); y = deserializeJson(str); dump(y); return y; } try { dump( test("['server unavailable']") ); } catch(e){ dump(e.message); } echo("hr"); try { dump( test("server unavailable") ); } catch(e){ dump(e.message); } echo("hr"); try { dump( test('{err:"server unavailable"}') ); } catch(e){ dump(e.message); } </cfscript>
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK