I am trying to use play json library update
method to convert nested json string to Json struct. But I am not able to get syntax correct. can someone please help me with this? I am using update method in https://www.playframework.com/documentation/2.5.x/ScalaJsonTransformers
Ex: I have sample input json
{
"key1": "value",
"key2": {
"key3": {
"key4": "{\"value1\":100, \"value2\":200}"
}
}
}
The expected output should be:
{
"key1": "value",
"key2": {
"key3": {
"key4": {"value1":100, "value2":200}
}
}
}