That's why it matters how ACF decides what datatyp...
# adobe
a
That's why it matters how ACF decides what datatype and key case it uses in the JSON
👍 1
3
I do also store JSON in the database from time to time (as databases support JSON now so you can query using it), but mainly it's for use by JS.
☝️ 2
d
In some situations, we're logging data that's not a simple value, and json is a good format for that.
☝️ 2
t
+1 to that. I used to log html dump text for errors, because it's so informative. But it's also so large... So i switched it to logging as JSON (minus the Java stack trace) which has all the same info, but much smaller, and just as easily readable.
And of course, I also use it for serializing data for external transfer. If I need to transmit data for an API, I'm serializing the CFC to JSON, and outputting it for consumption by whatever external service needs it. (which means that, again, the system reading it is probably not ColdFusion, and the datatypes and key cases matter)
1