Capture JSON response , update the JSON keys in object and POST as request body

Hello Everyone …

I have a situation where I need to

  1. Capture the JSON response from REST GET call which has around 30 key values.
  2. Update 3 keys to Null in that JSON object
  3. And use that JSON as a request body to next POST rest call .

For #1 I am using the .check(jsonPath("$.records[*]")…ofType[Map[String,Any]].find.saveAs("LineItemJSON”)) to
capture the whole JSON in a MAP . Can someone guide me how I can update some keys in the JSON object so that I
Can update it and then use it as request body for the successive call.

Appreciate all the help
Thanks
Arruneesh