3

TryCF Gist · GitHub

 2 years ago
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.
neoserver,ios ssh client

TryCF Gist · GitHub

Instantly share code, notes, and snippets.

TryCF Gist

<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>


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK