Hi all, I am trying to get Galaxie Blog working wi...
# cfml-general
g
Hi all, I am trying to get Galaxie Blog working with Lucee and am running into a weird issue. When I invoke a CFC and method using Ajax, the method returns a bunch of white space with line numbers. All of the methods on a given cfc return the same number of line numbers. For example, proxyController.cfc?method=getPostsForGrid and proxyController.cfc?method=getCategories each return 1437 lines of white space before the JSON. If I suppress white space on top of the CFC with offsetting, the number of lines goes down to 500 or so. Also, if I copy the URL into a browser window, I get the same number of lines and white space. I also am not enabling output on the functions, yet the same thing occurs. This happens on Lucee 5.4 through Lucee 6X.
1
This issue seems resolved by setting whitespace management from 'none' to 'smart' in the administrator output settings. That only took eight hours to solve- LOL!
a
It's nice to be tidy, but leading or trailing whitespace should not be considered significant in a JSON string. What problem was it causing?
g
Hi Adam, there were also tabs, spaces, and line numbers which destroyed the JSON