Nested JSON in actions V1 http response

I'm using actions V1 to add some data to user before registration.
The company service returns a response with nested json data.
Can I use javascript json functions in actions?
var response = http.fetch('https://external_service.com/api', {
        method: 'POST',
        body: userData,
        headers: {
         'Accept':'application/json',
         'Content-Type':'application/json'
        }
    }).json();


This gives me json as string in nested key.
So the response body is json but its "user" key is stringified json.
Was this page helpful?