A JSON String received from an server can be parsed to a Map which is easy to process by attribute names.
Parsing is very useful when the original String is huge.
First, add a dependency to the pom.xml.
EXAMPLE FOR API CALL DEPENDENCY:
EXAMPLE FOR GETTING AN ATTRIBUTE FROM A JSON STRING BY ITS INDEX:
Please note that a JSON can contain hierarchic data which means under an attribute name there can be an object which is described as with a JSON segment as well.
Processing with recursive technique can be advised.