/tests/resources/customJsonRepresentation.cfc

http://github.com/atuttle/Taffy · ColdFusion CFScript · 9 lines · 8 code · 1 blank · 0 comment · 0 complexity · 5d9650ec84ed430a16ab5abceeba96a1 MD5 · raw file

  1. <cfcomponent extends="taffy.core.nativeJsonRepresentation">
  2. <cffunction name="getAsJSON" output="false"
  3. taffy_mime="text/json"
  4. taffy_default="true"
  5. hint="serializes data as JSON">
  6. <cfreturn super.getAsJson() />
  7. </cffunction>
  8. </cfcomponent>