Results 28 comments of Mark Pulford

I'd prefer to keep types consistent (numbers are numbers, strings are strings) since that is much less surprising. It may be better to provide an option to replace the number...

I'm not sure of the utility for a "string" number. Programs would only be able to print it, and maybe re-encode it back to JSON. In these cases, perhaps the...

#20 was committed. Does that fix your build?

Yes, Lua CJSON should use a metatable to record array vs object to make encoding deterministic. It would also allow code to check whether a table decoded from JSON is...

The JSON numbers are floating point (a superset of integers). Any code consuming JSON needs to handle floating point numbers to avoid problems. Attempting to auto-detect between floats and integers...

Can you please provide some example decoders that fail with an escaped slash? Or maybe significant APIs? Just curious - I'd like to understand the impact better. Conversely, is anyone...

@tai-x Yes, forward slashes are currently escaped - this is valid JSON. I'm particularly interested to understand: 1. What breaks? Eg, Which decoders do not handle escaped forward slashes? Which...

Afaik, this bug was fixed in 1.0.4. Can you please provide some more details about the platform you are using, and how you are compiling Lua CJSON? There are 2...

While the hack to detect/adapt the decimal separator for different locales is ugly, I'm not aware of any specific locales where it doesn't work (happy to hear otherwise). Changing the...