When you have a string value such as "12E389532" (a serial number in my case), json_encode tries to encode it as a number (because it sees the "E" in it and thinks it is in scientific notation). Because of the JSON_NUMERIC_CHECK flag that is set in Formatter, it chokes.
Would recommend removing it for PHP 5.3 or lower, and for PHP 5.4 or higher, perhaps this would be better:
When you have a string value such as "12E389532" (a serial number in my case), json_encode tries to encode it as a number (because it sees the "E" in it and thinks it is in scientific notation). Because of the JSON_NUMERIC_CHECK flag that is set in Formatter, it chokes.
Would recommend removing it for PHP 5.3 or lower, and for PHP 5.4 or higher, perhaps this would be better: