From f9caae3045df4c8f533c172ace6326661ea18890 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 17 Aug 2026 13:29:02 +0300 Subject: [PATCH] json.cfm fix --- Application.cfc | 2 +- json.cfm | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Application.cfc b/Application.cfc index eb0baa1..665751c 100644 --- a/Application.cfc +++ b/Application.cfc @@ -108,7 +108,7 @@ - + diff --git a/json.cfm b/json.cfm index 2bf0c4e..2900425 100644 --- a/json.cfm +++ b/json.cfm @@ -95,8 +95,8 @@ function gaussianRound(numeric number, numeric precision = 0) { ,"codeMetered"="#m_code#" ,"component"="#component#" ,"unit"="#unit#" - ,"freeTier"="#free_tier#" - ,"price"="#gaussianRound(discounted_price,2)#" + ,"freeTier"=#isNumeric(free_tier) ? free_tier : 0# + ,"price"=#isNumeric(discounted_price) ? gaussianRound(discounted_price,2) : javaCast("null",0)# ,"details"=[] ]/> @@ -116,8 +116,10 @@ function gaussianRound(numeric number, numeric precision = 0) { - - + + + +