Assuming that your json looks like this:
String jsonToDecode = "{" +
" \"hostId\" : 286,\n" +
" \"parentSectionName\" : \"adadfr\",\n" +
" \"rank\" : 86096.0,\n" +
" \"activationStatus\" : \"ACTIVE\",\n" +
" \"overrideLinkProp\" : 0,"+
"}";
You can decode it using "com.googlecode.json-simple" package like so:
JSONParser parser = new JSONParser();
Object parsedJson = new Object();
try {
parsedJson = parser.parse(jsonToDecode);
} catch (ParseException e) {
//do something when json parsing fails
}
JSONObject jsonObject = (JSONObject) parsedJson;
String name = (String) jsonObject.get("parentSectionName");
System.out.print(name); // will output adadfr
JSONdepending on what language you're using. Pick one that looks good to you. It might be part of yourseleniumtests, but you won't use theseleniumlibrary for dealing withJSONobjects.