I see that the fix for this is still broken.
<cfif listFirst(server.coldfusion.productVersion) gte 8>
<cfreturn serializeJSON(_data)>
<cfreturn ‘{"#listLast(getMetaData(_data).name,".")#": “#getMetaData(_data).name#”}’>
Should be this as suggested a month or so ago.
<cfset dJSONString = createObject(‘java’,‘java.lang.StringBuffer’).init("") />
<cfreturn dJSONString.toString()>
But if you must have the CF Server check then it should be
<cfif listFirst(server.coldfusion.productVersion) gte 8>
<cfreturn ‘{"#listLast(getMetaData(_data).name,".")#": “#getMetaData(_data).name#”}’>
I also recall asking if there is some obsolete code here, because you can see very clearly that the StringBuffer is not being used. And as the original fix broke code that I had written over 2 years ago, this is not acceptable for me to go and change over 3,000+ lines of code that uses this in a lot of the work that has already been done.
Can we get this patched quickly please, because I am not looking forward to modify so many lines of code over a number of different applications either.