Question: I am trying to convert string like this:

```
{"Shops":[
{"city":"Riga","shops":[{"a":"some info here","b":"...","c":"..."},{"a":"some info here","b":"...","c":"..."}]},{"city":"Liepaja","shops":[{"a":"info here","b":"info....","c":"..."}]
]}

```

to 2d array, like

```
shops[0][0]=>{"a":"some info here","b":"...","c":"..."}
shops[1][0]=>{"a":"info here","b":"info....","c":"..."}

```

Is it possible? Is there some easy way to do that?

I've searched, tried, but I still don't know how to do that.
I'm new in java.

Answer: 
That is a [JSON](http://www.json.org/) string. There are a number of libraries that will do this for you.

* [JSON in Java](http://json.org/java/)
* [GSON](https://code.google.com/p/google-gson/)
That looks like JSON data, and you should treat it as such.

Try a JSON parsing library for Java. I like [GSON](http://code.google.com/p/google-gson/) for its simplicity. Take a look at the Gson.fromJson() set of methods.