renderdata json returning invalid json

struct.png

When rendering event.renderData(“json”, theStruct, “application/json”) I get:

{
“35”: “”,
“24”: 100,
“39”: 1018,
“11”: 542123,
“38”: 000000,
“12”: 20130530100038,
“3”: “003000”,
“2”: “”,
“7”: “0530100038”,
“43”: “47002C520032323133”,
“6”: 2000000000000,
“5”: 2000000000000,
“32”: 2202,
“4”: 2000000000000
}

If you check this with a json validator it will fail because 000000 in “38”: 000000 should be quoted.
Json does not like unquoted numbers that start with a 0.

Anyone know of this issue?

Looks like it is a CF bug. I suspect it is SerializeJSON that parses strings that are a sequence of only zero’s as a number where if there is any other character (or number) it parses as text…

Yes, buggy ACF.

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano