How to modify JSON returned from response

I’m using this https://developers.cloudflare.com/workers/examples/post-json/
example to retrieve JSON data from an API. It works great, but I can’t figure out how to modify the JSON data even if I modify it and then create a new Response object. I just want the worker to return one of the key value pairs from the JSON data, instead of all of it.

I know it’s a really basic question so thanks in advance,

Hi @jcdaw1999

Can you provide a sample of what you are trying to do?