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 for

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
13 7:52 PM 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 t

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 thi

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 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 regular expressio

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: