my json is still bring whitespace REReplace(utils....
# cfml-general
s
my json is still bring whitespace REReplace(utils.jsonencode(data), "[[space]]+", "", "all" ) in my functions i am using output false
m
It's nearly impossible to determine what's going on without seeing the entire function.
👍 2
b
serializeJson( deserializeJson( myJson ) )
s
i found the issue, but the problem is i don't how to fix it
i am getting the json but in some way the script tag is also coming from onrequesntend.cfm which is part of big application, i cannot remove that
how shold i fix it
m
Again, hard to tell without seeing
onRequestEnd.cfm
or how
data
is generated
s
i removed onrequestend and i get data now and its all well but still tons of whitespace
b
abort before onrequestend runs if you don't want it to run on certain requests.