Class of org.json · JSONTokener.java · Android's reference
public class JSONTokener
Reads JSON text as Android's does: lenient about a few things (single quotes, unquoted names, # comments).
public JSONTokener(String in) sourcepublic Object nextValue() throws JSONException sourcepublic String nextString(char quote) throws JSONException sourcepublic JSONException syntaxError(String message) sourcepublic String toString() sourcepublic boolean more() sourcepublic char next() sourcepublic char next(char c) throws JSONException sourcepublic char nextClean() throws JSONException sourcepublic String next(int length) throws JSONException sourcepublic String nextTo(String excluded) sourcepublic String nextTo(char excluded) sourcepublic void skipPast(String thru) sourcepublic char skipTo(char to) sourcepublic void back() sourcepublic static int dehexchar(char hex) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.