Not happy with the CF901 JSON Changes?

In my post on the ColdFusion 901 release, more than one user commented that they weren’t happy with the changes to JSON serialization in 901. According to the docs, the idea was that numbers wouldn’t be converted to floats. Specifically, 10 would not become 10.0. Also, values that had a leading 0, like 007, would not lose their zeros and would become strings: “007”. It appears though as if all of these values are turning into strings. So 10 becomes “10”. This is contrary to what the docs say will happen. I disagreed with how serious this was, but to be honest, I really don’t see any reason why the number needs to be quoted. Reader Patrick logged bug 83638. If you agree that the behavior should be fixed, than please add your vote. (And remember to click the Subscribe button to be notified of updates.) I just added my own vote.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA