Coldfusion 9 JSON解析错误

时间:2012-07-09 18:40:08

标签: jquery json coldfusion coldfusion-9

我有一个基本上做这个的功能

<cffunction name="foo" access="remote" returnformat="JSON" >

     <cfreturn ["000", "001", "002"]>

<cffunction>

我正在使用jQuery.ajax检索此数组,在firebug中,我看到[000, "001", "002"]

查看零如何丢失其引用。这导致jQuery通过解析错误SyntaxError: JSON.parse: expected ',' or ']' after array element,或者这就是我所假设的。任何人都可以解释为什么ColdFusion没有在零点附近引用,还有一种解决方法吗?

1 个答案:

答案 0 :(得分:2)

这是一个已在Adobe Coldfusion中注册的coldfusion 9错误(错误ID 83638)。您可以将coldfusion升级到ColdFusion 9.0.1以解决此问题。您只需要安装热修复程序。

访问以下网址以安装Hotfix。

http://helpx.adobe.com/coldfusion/kb/cumulative-hotfix-1-chf1-coldfusion.html