How to update nested fields of Json using scala and Jackson or any other Json framework

177 views Asked by At

I want to edit a nested field of a Json using its path as a string. The path comes from a variable.

{
  "Type": "phone",
  "os": "android",
  "Transaction": {
    "Date": {
      Day: "22",
      Month: "Jan"
    },
    "value": "2000"
  }
}

I want to update say, Month value Jan to Dec

0

There are 0 answers