Skip to content

Commit ef34250

Browse files
Merge pull request #43 from gsf/patch-1
Add newline to end of generated json file
2 parents 5aa4c22 + 77b089f commit ef34250

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/formDataToJson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ async function downloadFile(event) {
295295

296296
const codeJson = document.getElementById("json-result").value
297297
const jsonObject = JSON.parse(codeJson);
298-
const jsonString = JSON.stringify(jsonObject, null, 2);
298+
const jsonString = JSON.stringify(jsonObject, null, 2) + "\n";
299299
const blob = new Blob([jsonString], { type: "application/json" });
300300

301301
// Create anchor element and create download link

0 commit comments

Comments
 (0)