fastjson
fastjson copied to clipboard
NO-BREAK SPACE报错
String s = "[{\"restaurant_id\":1246163,\"index\":1,\"content\":\"午后阳光照进来特别舒服 。\"}]";
System.out.println(JSON.toJSONString(s));
这个字符串最后的句号前面有一个NO-BREAK SPACE http://zh.wikipedia.org/wiki/%E4%B8%8D%E6%8D%A2%E8%A1%8C%E7%A9%BA%E6%A0%BC 所以出错了
这个场景出现在我们的系统里输出一个Map为JSONString的时候,因为其中有一个字段是json字符串,所以出现的..
已修复