Coldfusion's SerializeJson Sucks!
If I recall correctly CFML is a typeless language. I mean we can really all agree that Coldfusion is typeless right?
Ok now that we have that out of the way lets talk about Adobe's implementation of serializejson(). Serializejson is simply trying to be too damn smart for its own good.
Listen I don't want you to frig with my data, I want you to take my structured data, be it query, structure, or array, or whatever, and simply convert that structure into its JSON equivalent. Don't try to parse my dates, numbers or what not, or even try to. Just take what I give you and simply covert the data from one structure to the other mmmkay?
Since when is 9999999999999999E+10 equal to 9.999999999999999E25. Ok mathematically they are, but did I ask you to be smart and do math? NO, I don't think I did!
Either provide me with enough options that I can influence how numbers and dates are handled or do what Railo does and output everything as strings.
/rant off



Subscribe via RSS
Follow me on Twitter