/core/nativeJsonRepresentation.cfc
http://github.com/atuttle/Taffy · ColdFusion CFScript · 12 lines · 10 code · 2 blank · 0 comment · 0 complexity · 86a51051e1ced15833615f42750a61c1 MD5 · raw file
- <cfcomponent extends="taffy.core.baseRepresentation" output="false" hint="Representation class that uses CFML server's json serialization functionality to return json data">
- <cffunction
- name="getAsJson"
- output="false"
- taffy:mime="application/json"
- taffy:default="true"
- hint="serializes data as JSON">
- <cfreturn serializeJSON(variables.data) />
- </cffunction>
- </cfcomponent>