Question: I am trying to create an Xpath to click on radioButton. see below element and xpath from the web:

Xpath: 

```
/html/body/div[3]/div[2]/form/table/tbody/tr[5]/td[2]/label[1]/input

```

ELEMENT:

```
<input type="radio" ng-model="dataRow[column.map]" name="optionsRadios" value="15" class="ng-pristine ng-valid">

```

Answer: 
Gson deserializes any valid Json to `LinkedTreeMap`, like:

```
LinkedTreeMap<?,?> ltm = new Gson().fromJson(YOUR_JSON, LinkedTreeMap.class);

```

Then it is just about making some recursive methods to do the clean up:

```
public void alterEntry(Entry<?, ?> e) {
    if(e.getValue() instanceof Map) {
        alterMap((Map<?, ?>) e.getValue());
    } else {
        if(e.getKey().equals("secondName")) { // hard coded but you see the point 
            e.setValue(null); // we could remove the whole entry from the map
                              // but it makes thing more complicated. Setting null
                              // achieves the same.
        }
    }
}

public void alterMap(Map<?,?> map) {
    map.entrySet().forEach(this::alterEntry);
}

```

Usage:

```
alterMap(ltm);

```
You could try storing the JSON as a `JSONObject`, iterate over the keys using `jsonObject.names()` and remove the entries using `jsonObject.remove(key)`.