234 attempt to fix js error Uncaught SyntaxError: Unexpected identifier 'hidden'

This commit is contained in:
2026-04-27 17:57:24 +03:00
parent 8a32a0d5f0
commit 74c073bd7e
149 changed files with 14361 additions and 8886 deletions
+16 -17
View File
@@ -1,21 +1,20 @@
<cfcomponent extends="taffy.core.baseDeserializer">
component extends="baseDeserializer" {
<cffunction name="getFromJson" output="false" taffy:mime="application/json,text/json" hint="get data from json">
<cfargument name="body" hint="the textual request body" />
<cfset var data = 0 />
<cfset var response = {} />
public function getFromJson(body) output="false" taffy_mime="application/json,text/json" hint="get data from json" {
var data = 0;
var response = {};
<cfif not isJson(arguments.body)>
<cfset throwError(msg="Input JSON is not well formed", statusCode="400") />
</cfif>
<cfset data = deserializeJSON(arguments.body) />
<cfif not isStruct(data)>
<cfset response['_body'] = data />
<cfelse>
<cfset response = data />
</cfif>
if (!isJson(arguments.body)) {
throwError(msg="Input JSON is not well formed", statusCode="400");
}
data = deserializeJSON(arguments.body);
if (!isStruct(data)) {
response['_body'] = data;
} else {
response = data;
}
<cfreturn response />
</cffunction>
return response;
}
</cfcomponent>
}