public static JSONValue parse(TokenReader tokens, String token)
			throws IOException, ParseException {
		JSONArray result = new JSONArray();

		if ((token = tokens.next()).equals("]")) {
			return result;
		}

		do {
			result.add(JSONValue.parse(tokens, token));
			if (!(token = tokens.next()).equals(",")) {
				break;
			}
			token = tokens.next();
		} while (true);

		tokens.parseAssert(token.equals("]"), "Closing ']' expected!");
		return result;
	}