I want to convert an HTML input file to a JSON string like this:
var jsonString = JSON.stringify(file); console.log( file ); console.log( jsonString );
When you pass a json string Javascript internally trnsform it to Json object and hence no need to parse it.
follow steps in case of of json file ->
$('#inp_import_template')[0].files[0]
Now your json file is transformed to json object (Javascript).