RE: JSON Encoding bug (again...)

2013-08-06 Thread Mark A Kruger
To: cf-talk Subject: Re: JSON Encoding bug (again...) I have had to do so many hacks to get serializeJSON() to play nice. I add a ~ to all yes/no strings so I don't get back true/false values, I have a series of regular expressions that quote values in the resulting JSON that don't get quoted

Re: JSON Encoding bug (again...)

2013-08-06 Thread Dave Watts
The code testval = '.0006' makes me think a string instead of a number. Javacast might force a type on the string eh? That might work, but the problem is that CF will continually reevaluate values every time they're used - as you'd expect in a typeless language. All you can do is force CF to

RE: JSON Encoding bug (again...)

2013-08-06 Thread Mark A Kruger
Yeah... got it. -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Tuesday, August 06, 2013 10:28 AM To: cf-talk Subject: Re: JSON Encoding bug (again...) The code testval = '.0006' makes me think a string instead of a number. Javacast might force a type

JSON Encoding bug (again...)

2013-08-05 Thread Brook Davies
I have had to do so many hacks to get serializeJSON() to play nice. I add a ~ to all yes/no strings so I don't get back true/false values, I have a series of regular expressions that quote values in the resulting JSON that don't get quoted and break on the client side. And now I have this issue:

Re: JSON Encoding bug (again...)

2013-08-05 Thread Raymond Camden
Not that it helps, but the same happens in CF10 as well. On Mon, Aug 5, 2013 at 6:46 PM, Brook Davies cft...@logiforms.com wrote: I have had to do so many hacks to get serializeJSON() to play nice. I add a ~ to all yes/no strings so I don't get back true/false values, I have a series of

Re: JSON Encoding bug (again...)

2013-08-05 Thread Dave Watts
I have had to do so many hacks to get serializeJSON() to play nice. I add a ~ to all yes/no strings so I don't get back true/false values, I have a series of regular expressions that quote values in the resulting JSON that don't get quoted and break on the client side. And now I have this

JSON Encoding Bug

2012-03-04 Thread Brook Davies
I just want to say I think that it is seriously lame that Adobe has not fixed the encoding issues with serializeJSON() converting 'yes' / 'no' to true/false. Yes, you can append as string and then convert it back afterwards and all that, but that's just adding extra processing overhead and