诡异的json包含bom头
2017-08-29 22:40 VinpleZhang 阅读(1742) 评论(0) 编辑 收藏 举报今日项目碰到 需要调用php的一个接口 结果一直报返回的json字符串转对象 bom头报错
Exception in thread "main" com.fasterxml.jackson.core.JsonParseException: Unexpected character ('' (code 65279 / 0xfeff)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: {"state":1,"state_code":1,"state_msg":"\u5f00\u95e8\u6210\u529f"}; line: 1, column: 2]
http://blog.csdn.net/sunny2come/article/details/9329817