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
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
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
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:
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
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
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
7 matches
Mail list logo