From c49d6bbc6833109fbeb2e1dc2e6f715157aa3ea2 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Wed, 5 Aug 2015 19:47:49 -0400 Subject: [PATCH] String values "YES" and "NO" no longer converted to Boolean --- lib/JsonSerializer.cfc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/JsonSerializer.cfc b/lib/JsonSerializer.cfc index b79c5c3..a571d13 100644 --- a/lib/JsonSerializer.cfc +++ b/lib/JsonSerializer.cfc @@ -181,7 +181,7 @@ component // If the string appears to be numeric, then we have to prefix it to make sure // ColdFusion doesn't accidentally convert it to a number. - if ( isNumeric( input ) ) { + if ( isNumeric( input ) || isBoolean( input ) ) { writeOutput( """" & input & """" );