How to add and remove from nested array

This is a document

JSON:

{
  "prop1": "value1",
  "arr1": [
    {
      "prop2": "value12",
      "arr2": [
        {
          "prop3": "value13"
        },
        {
          "prop3": "value14"
        }
      ]
    },
    {
      "prop2": "value22",
      "arr2": [
        {
          "prop3": "value23"
        }
      ]
    }
  ]
}

Could you please tell me how to add element to nested array arr2 where arr1.prop2==“value12”
and how to remove element from array where arr1.prop2==“value12”
and removed element from nested array arr2 where
arr1.prop2==“value12” and arr2.“prop3” = “value13”.
I use java sdk 3