UI5 export model as JSON

I currently work on a UI5 project which loads data from a local .json and bind it to a model. I can now edit and add new values to the model.

Is it possible to export this modified model as .json through a file download dialog?

I'm new to UI5 and looked on serveral posts but only found export to CSV where columns and rows are set. But this does not fit my case. I need it just converted back to .json.

Hopes anyone has an idea.