Few of issues addressed in hotfix were that of string to number
conversion, and number getting converted to double.
The change in behavior
of JSON serialization, which fixed some of the basic problems of CF developer
at one hand, also had a side effect of breaking old application built on CF8.
Migration from CF8 to later version might require making few changes in the developer’s
To achieve backward
compatibility and to address a scenario where old behavior of JSON
serialization has to be retained, a JVM flag had been introduced at the same
time. If enabled, it would bypass the latest changes for JSON serialization and
fall back to CF8 behavior.
Here I am describing the JVM flag and the way to
To achieve the CF8 behavior, one can add a
JVM system property json.numberasdouble=true to jvm.config.
It is applicable to CF “CumulativeHotfix1 for ColdFusion 9.0.1” and
Please add the suggested
flag just after former headless entry as –Djson.numberasdouble=true.