1.5.26版本JSON解析JSON com.alibaba.fastjson.JSONException: syntax error

lymgl2op  于 2021-11-27  发布在  Java
关注(0)|答案(1)|浏览(1037)

<com.alibaba.fastjson.JSONException: syntax error, pos 383, line 12, column 64{
"@type":"com.alipoo.zcacdd.config.impl.ZcacheConfiguration",
"cacheGroupMap":{"@type":"java.util.HashMap",
"GZ00":"kbttttestcenterTairCacheGZ00:r10w10,kbttttestcenterTairCacheGZ00D:r00w00"
},
"cacheName":"kbttttestcenterTairCache",
"dbmode":"dev",
"elastic":false,
"legacyZone":"GZ00",
"logicalCacheSettingList":[
{
"@type":"com.alipoo.zcacdd.config.impl.LogicalTairSetting",
"nameSpace":45,
"physicalTairSetting":{
"configServerList":[
"tair.stable.alipay.net:1498",
"tair2.stable.alipay.net:1498"
],
"groupName":"pubmemdb",
"maxThreadCount":100,
"tairName":"pubmemdbLegacy",
"timeout":200
},
"tairName":"kbttttestcenterTairCache"
},
{
"@type":"com.alipoo.zcacdd.config.impl.LogicalTairSetting",
"nameSpace":45,
"physicalTairSetting":{
"configServerList":[
"tair-1-64.stable.alipay.net:5198",
"tair-2-64.stable.alipay.net:5198"
],
"groupName":"pubmemdb",
"maxThreadCount":100,
"tairName":"pubmemdbZtg",
"timeout":200
},
"tairName":"kbttttestcenterTairCache"
}
],
"zoneMetaMap":{"@type":"java.util.HashMap",
"GZ00":{"@type":"java.util.HashMap",
"zoneCluster":"NORMAL"
}
}
}

gmxoilav

gmxoilav1#

cacheConfiguration configuration = JSON.parseObject(cfgContent, ZcacheConfiguration.class)

相关问题