I'm tried to parse some json array (with string and two-dimensional array) into objects array, but the solutions I found do not work (or I was looking bad). Please, help me with the code to get an array of objects.
I found working method for Java (I tried it in Eclipse) this, but I want it for Android (in Android Studio)
My json file:
[
{
"someString": "First string",
"someTwoDimArray":
[
["First_firstElement", "First_secondElement"],
[true, false]
]
},
{
"someString": "Second string",
"someTwoDimArray":
[
["Second_firstElement", "Second_secondElement"],
[true, true]
]
}
]
I have java class:
public class someClass {
String someString;
Object[][] someTwoDimArray;
}
What I need: (To process the data in the code later)
someClass[] someClasses = /* ??? */