: not close json text, token : :

时间:2025-04-03 18:24:47

1、错误描述

 : not close json text, token : :
	at (:1115)
	at (:93)
	at (:80)
	at (:151)
	at (:204)
	at $(:708)
	at (:157)
	at $(:98)
	at (:262)
	at (:95)
	at (:179)
	at (:92)
	at (:179)
	at $(:644)
	at .invoke0(Native Method)
	at (:57)
	at (:43)
	at (:606)
	at $(:44)
	at (:15)
	at (:41)
	at (:20)
	at .(:74)
	at .(:83)
	at .(:72)
	at .junit4.(:233)
	at .junit4.(:87)
	at $(:193)
	at $(:52)
	at (:191)
	at $000(:42)
	at $(:184)
	at .(:61)
	at .(:71)
	at (:236)
	at .junit4.(:176)
	at ..(:50)
	at (:38)
	at (:467)
	at (:683)
	at (:390)
	at (:197)
2017-02-15 14:41:19,380 [Thread-3] INFO  [] - {dataSource-1} closed

2、错误原因

     在字符串转JSON对象时,截取JSON字符串去掉了右大括号,导致转换成JSON对象不完整报错


3、解决办法

(1)在截取JSON字符串时,需要添加判断,如果字符串开始和结束字符含有引号,才让截取;否则不截取