Using JsonNode or ObjectNode, how can i remove an ...
# getting-started
h
Using JsonNode or ObjectNode, how can i remove an item from a nested list if found? Lets say I have this JSON
Copy code
{
  "A": "Test",
  "someNode": {
    "X": "Test",
    "myList": [
      "RemoveThis",
      "DontRemove"
    ]
  }
}
How can I remove
RemoveThis
? I have a list of words I essentially want to filter out at some point, but I can't seem to find a way to remove the nested list's elements. I can remove other properties with
remove()
method, but can't do that to the list
y