I should download json file on button click. When I click, I make a request to api and the following response:
{
data: {…},
status: 200,
statusText: "",
headers: {…},
config: {…},
…
}
but how can I download json file on button clicking with this response from backend?