Skip to content

Instantly share code, notes, and snippets.

@s992
Created April 22, 2013 02:55
Show Gist options
  • Save s992/5432156 to your computer and use it in GitHub Desktop.
Save s992/5432156 to your computer and use it in GitHub Desktop.
<cfscript>
function test() {
return "I break when serialized!";
}
writeOutput( serializeJSON( test ) );
</cfscript>
<cfscript>
component accessors="true" {
property id;
property name;
property occupation;
property address;
public any function init() {
this.test = "I am 'this.test' and I am part of the struct!";
return this;
}
package any function package() {
return "package";
}
private any function private() {
return "private";
}
remote any function remote() {
return "remote";
}
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment