I've requirement to parse and update some of the field values in nested json as below
What is the best way to do with Java ?
I googled but didn't find any simple & effective way to do the same
I did refer to question How to parse JSON in Java, but answers given there are quite abstract & also doesn't explain how to update particular value against nested key
[   {
    "applicationId": "email-id-1202",
    "extRefNumber": "SALARY_STATEMENT-ref-number2018-04-06T17:32:01.852",
    "bankName": "SALARY_STATEMENT",
    "applicants": [
      {
        "personId": "1",
        "documents": [
          {
            "fileId": "2",
            "documentId": "2",
            "type": "TAX_DOCUMENTS"
          }
        ]
      }
    ],
    "data": {
      "firstName": "First",
      "lastName": "Last",
      "branchCode": "branch-code"
    }  ]
