JsonParser parser = new JsonParser();
JsonElement jsonElement = parser.parse(json);
JsonObject jsonObj = jsonElement.getAsJsonObject();
JsonArray feed = new JsonArray();
feed = jsonObj.getAsJsonArray("feed");
JsonObject jsonOb = feed.get(0).getAsJsonObject();
String value = jsonOb.get("cat2").getAsString();
This is how you can get value of cat2. You will need to add com.google.gson library to compile this code.