I am getting a response String from server like below
{ \"name\": \"Json\", \"detail\": { \"first_name\": \"Json\", \"last_name\": \"Scott\",
we can use the below to get key as string from JSON OBJECT
JsonObject json = new JsonObject(); json.get("key").getAsString();
this gives the string without double quotes " " in the string
" "