get key name & key value from json
as your new to Java and JSON is one of the most famous data interchange language out there, I recommend you to understand the parsing and the structure of JSON thoroughly this example.
for (String key: jsonObject.keySet()){ System.out.println(key);}
This will fetch you the set of Keys in the JSON.