Merge pull request #452 from johnjaylward/FixEOF

Adds check for EOF
This commit is contained in:
Sean Leary
2018-12-13 09:14:10 -06:00
committed by GitHub

View File

@@ -448,7 +448,9 @@ public class JSONTokener {
sb.append(c);
c = this.next();
}
this.back();
if (!this.eof) {
this.back();
}
string = sb.toString().trim();
if ("".equals(string)) {