Context: I have converted an array into a string, then into bytes so that it can be stored as a blob in a database. I then want to retrieve the array. I retrieve the blob and retrieve the string from the bytes. I then want to retrieve the array from the string.
Now I had been looking at various options to convert my string back into an array. I had looked at using string.split() with certain regex to get my array back, however, this gets a bit complicated with it being multidimensional. However is there a simple way to convert a string back to array where the string still contains its original "array syntax"?
e.g.
Array array = {1, 2, 3}
String string = array.toString()
[insert string back to array]
Cheers!
p.s. can an array be stored in a database (google app engine) without the need for this inefficient convoluted method?