How do I force a Coldfusion cfc to output numeric data over JSON as a string?
- by Dan Sorensen
I'm calling a Coldfusion component (cfc) using jQuery.post(). I need an integer or string representation of the number returned for use in a URL.
{"PAGE":"My Page Title","ID":19382}
or
{"PAGE":"My Page Title","ID":"19382"}
Instead what I get back is a decimal:
{"PAGE":"My Page Title","ID":19382.0}
Needed to update the following HTML:
<a…