1. 程式人生 > >詭異的json包含bom頭

詭異的json包含bom頭

tails blog stat com number jsonp sunny details state

今日項目碰到 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

詭異的json包含bom頭