Bishamon Ten
Bishamon Ten

Reputation: 588

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

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

Upvotes: 0

Views: 195

Answers (0)

Related Questions