首页 > 其他分享 >org.bson.json.JsonParseException: JSON reader was expecting a name but found ‘,‘.

org.bson.json.JsonParseException: JSON reader was expecting a name but found ‘,‘.

时间:2023-01-14 10:09:26浏览次数:39  
标签:name 多加 JSON json 报错 reader found bson


问题

执行JSON转化时报这个错

org.bson.json.JsonParseException: JSON reader was expecting a name but found ‘,‘._java

原因

自己写的这个JSON转换不对,不符合JSON格式,但是我的给我报错位置和实际错误位置差了几行,导致找了半天,觉得自己写的没问题,注释掉发现确实有个地方多加了个逗号

org.bson.json.JsonParseException: JSON reader was expecting a name but found ‘,‘._json_02

解决

删除多加的符号


标签:name,多加,JSON,json,报错,reader,found,bson
From: https://blog.51cto.com/u_15939406/6007203

相关文章