diff --git a/CacheJSON.cls b/CacheJSON.cls index f10b96f..8058401 100644 --- a/CacheJSON.cls +++ b/CacheJSON.cls @@ -241,7 +241,7 @@ ClassMethod Encode(data As %DataType) As %String q:data="" "null" q """"_..Escape(data)_"""" } - elseif $ISVALIDNUM(data) { + elseif $ISVALIDNUM(data) && ($l(data) = $l($number(data))) { // type number q data