result = rootObject;
} else {
if (!ordered) {
result = new JSONObject();
} else {
result = new OrderedJSONObject();
}
}
if (lastToken != Token.TokenBraceL) throw new JSONException("Expecting '{' " + tokenizer.onLineCol() + " instead, obtained token: '" + lastToken + "'");
lastToken = tokenizer.next();