修复JsonConvert的""空字符串转换对象抛异常的BUG
This commit is contained in:
@@ -168,6 +168,7 @@ public class JsonReader extends Reader {
|
||||
@Override
|
||||
public String readObjectB(final Class clazz) {
|
||||
this.fieldIndex = 0; //必须要重置为0
|
||||
if (this.position <= this.text.length) return null;
|
||||
char ch = this.text[++this.position];
|
||||
if (ch == '{') return "";
|
||||
if (ch <= ' ') {
|
||||
|
||||
Reference in New Issue
Block a user