I have a request that I want to convert to a JSON object.
My query has a string (for example, "0000" or "0001" ). Unfortunately, after calling SerializeJSON string is a number ( 0 , 1 , ...).
I get an error when calling functions using jQuery because the JSON object is invalid. Quotation marks fail:
{ "COLUMNS": ["Test1","Test2","Test3"], "DATA": [ ["AA ",0000,"testestest"] ] }
I have tried many times. Can you help me?
Here is my code:
<cffunction name="getData" access="remote" returntype="any" returnformat="JSON"> SQL.... <cfset result = SerializeJSON(result)> <cfreturn result> </cffunction>
source share