Assuming you also want to get json in format
{ "apps": [ { "mean": 1.2, "deviation": 1.3, "code": 100, "pack": "hello", "version": 1 }, { "mean": 1.5, "deviation": 1.1, "code": 200, "pack": "world", "version": 2 } ] }
instead
{"apps":[{"mean":1.2,"deviation":1.3,"code":100,"pack":"hello","version":1},{"mean":1.5,"deviation":1.1,"code":200,"pack":"world","version":2}]}
You can use beautiful print. To do this, use
Gson gson = new GsonBuilder().setPrettyPrinting().create(); String json = gson.toJson(dataResponse);
Pshemo
source share