We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a811f1 commit bd92888Copy full SHA for bd92888
1 file changed
JSONTokener.java
@@ -444,11 +444,13 @@ public Object nextValue() throws JSONException {
444
*/
445
446
StringBuilder sb = new StringBuilder();
447
- while (c >= ' ' && ",:]}/\\\"[{;=#".indexOf(c) < 0) {
+ while (c > ' ' && ",:]}/\\\"[{;=#".indexOf(c) < 0) {
448
sb.append(c);
449
c = this.next();
450
}
451
- this.back();
+ if( false == this.eof ) {
452
+ this.back();
453
+ }
454
455
string = sb.toString().trim();
456
if ("".equals(string)) {
0 commit comments