Ok, I have a Json Array:
JsonArray gridItemArray = myColumns.getAsJsonArray();
(at this point, myColumns & gridItemArray (as I believe it should be, but could be wrong) =
[
[
14,
"1",
"bridge_routine_link",
"Y",
"Y",
"100",
"CENTER",
"Cheese",
"",
"",
"",
"LEFT",
"LEFT",
"LEFT",
"LEFT",
"",
"0",
"",
"string",
"",
""
]
]
)
Now, I create a multidimensional array:
columnData = new String[gridItemArray.size()][21];
Now. I need to get each individual element out of gridItemArray and put it into columnData so that for each item in gridItemArray, I get the following for columnData:
First element in columnData[0][0]:
["some_item_name_that_matches_DB_Field"][14]
Second element in columnData[1][1]:
["next_DB_field_name"]["1]
Until all 21 items have been assigned a string literal for the first array and a value for the second array.
Please advise.