I have a JSON Schema object which I want to save in a .json file.
var file = new File([jsonSchemaObject], "filename.json", {
type: "text/json; charset=utf-8"
});
I use the up-mentioned code to create File object but have not been able to save it as a file. I looked up the documentation: [ https://developer.mozilla.org/en-US/docs/Web/API/File ].
Comments
Post a Comment