I have a JSON Arrays of Array like this
{
\"width\" : 500,
\"numbers\" : [
[46, 11, \"1674\"],
[46, 11, \"1673\"],
[46, 11, \"16
Try GSON, the following should do the trick:
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import com.google.gson.Gson;
public class ReadTest {
public static void main(String[] args) throws IOException {
String json = FileUtils.readFileToString(new File("json.txt"));
Gson gson = new Gson();
A a = gson.fromJson(json, A.class);
System.out.println(a.width);
System.out.println(a.numbers[0][0]);
}
}
public class A {
public int width;
public int numbers[][];
}