The response body parsed from JSON.
The parsed JSON object is cached with the response object,
so multiple accesses will call JSON.parse() only once.
Note
This method can only parse regular JSON values. Relaxed JSON is not supported here.
let response = await up.request('/profile.json')
console.log("User name is " + response.json.name)
Tip Your coding agent can search these docs locally with the Unpoly agent skill