I see the Json problem still exists on Final CB3.0 release

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.

fix on dev branch

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Cheers Luis will check it out shortly.

Regards,

Andrew Scott

http://www.andyscott.id.au/

So this is not in the git trunk, or part of the distribution yet?

Regards,

Andrew Scott

http://www.andyscott.id.au/

Correct. This is in the dev branch and won’t be merged into master until it is released.