All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.json.JsonTokeners Maven / Gradle / Ivy

There is a newer version: 3.2.26
Show newest version
package org.json;

public class JsonTokeners {
    public static String readToString(JSONTokener jsonTokener) {
        if (jsonTokener == null) {
            return null;
        }
        StringBuilder stringBuilder = new StringBuilder(255);
        while (jsonTokener.more()) {
            stringBuilder.append(jsonTokener.next());
        }
        return stringBuilder.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy