String json = builder.toString(); String[] macgyver = json.split(":"); System.out.println(macgyver[9].split(",")[0]);