313233343536373839
public class JSON { /** Parse a complete JSON object */ public static JsonObject parse(InputStream input) { JSONMaker maker = new JSONMaker(); _parse(input, maker) ; return (JsonObject)maker.jsonValue() ; }
454647484950515253
} /** Parse any JSON value, not just an object, from an input stream */ public static JsonValue parseAny(InputStream input) { JSONMaker maker = new JSONMaker(); _parseAny(input, maker) ; return maker.jsonValue() ; }
99100101102103104105106107
// Hide the reader versions - not encouraged due to charset problems. private static JsonObject _parse(Reader r) { JSONMaker maker = new JSONMaker(); _parse(r, maker) ; return (JsonObject)maker.jsonValue() ; }
106107108109110111112113114
return (JsonObject)maker.jsonValue() ; } private static JsonValue _parseAny(Reader r) { JSONMaker maker = new JSONMaker(); _parseAny(r, maker) ; return maker.jsonValue() ; }
103104105106107108109110111
110111112113114115116117118
373839404142434445
515253545556575859