File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -214,8 +214,8 @@ public JSONObject(JSONTokener x) throws JSONException {
214214 if (x .nextClean () != '{' ) {
215215 throw x .syntaxError ("A JSONObject text must begin with '{'" );
216216 }
217+ c = x .nextClean ();
217218 for (;;) {
218- c = x .nextClean ();
219219 switch (c ) {
220220 case 0 :
221221 throw x .syntaxError ("A JSONObject text must end with '}'" );
@@ -252,13 +252,13 @@ public JSONObject(JSONTokener x) throws JSONException {
252252 switch (x .nextClean ()) {
253253 case ';' :
254254 case ',' :
255- if (x .nextClean () == '}' ) {
255+ c = x .nextClean ();
256+ if (c == '}' ) {
256257 return ;
257258 }
258259 if (x .end ()) {
259260 throw x .syntaxError ("A JSONObject text must end with '}'" );
260261 }
261- x .back ();
262262 break ;
263263 case '}' :
264264 return ;
You can’t perform that action at this time.
0 commit comments