Inserting API data into multiline input

Hello Team,

I have an API response that looks like this:

I need to take one set of data from each of the keysets and put them in a multiline input, each on its own line. It is the “name” key I’m interested in. So, after I’m done the multiline input would have this in it:

First Name
Last Name

I’m unclear on both how to extract the data from the API response correctly and also how to get it into the multiline input.

Any guidance would be appreciated.