response.setContentType("application/json;charset=UTF-8");//必须的设置,返回串类型指定jsonout.write("{success:\"0\",fileName:\"您请求的内容不存在!\"}");//楼主参考我的写法也就是:String str="{success:\"true\"}";
你的true后面少个“号
"{\“success\":\“true\"}“