I use the following helper in the project I'm working on:
def insert(path: JsPath, value: JsValue) =
__.json.update(path.json.put(value))
JSON :
val rJson = Json.parse(response)
val imgId =
Json.stringify(rJson.transform(insert(__ \ 'imgId, imgId)))
insert, , API- .
, andThen. API , Reads . insert API, , , API.
, API , Play framework docs JSON, 5 , , .