PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/core/nativeJsonRepresentation.cfc

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