testList("[[0, 1, 2], [3, 4, 5]]", "[1][]");
testList("[[0, 1, 2], [3, 4, 5]]", "[1][0][0]");
}
public static void test3() {
JSONSerializer serializer = new JSONSerializer("ISO-8859-1");
InputStream inputStream = JSONSerializerTest.class.getResourceAsStream("json_serializer_test.json");
Object root = null;
try {
root = serializer.readObject(inputStream);
} catch(Exception exception) {
System.out.println(exception);
}
if (root != null) {
System.out.println(JSONSerializer.getString(root, "foo"));
System.out.println(JSONSerializer.getString(root, "bar"));
}
try {
serializer.writeObject(root, System.out);
} catch(Exception exception) {
System.out.println(exception);
}
}