web123456

: not close JSON text, token : :

1. Error description

 : 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. Cause of error

When converting a string to a JSON object, the JSON string is intercepted and the closing brace is removed, resulting in incomplete conversion to a JSON object.


3. Solution

(1) When intercepting JSON strings, you need to add judgments. If the start and end characters of the string contain quotes, you will be intercepted; otherwise, you will not intercept them.