Skip to content

Commit 77b089f

Browse files
authored
Add newline to end of json file
1 parent 7838c54 commit 77b089f

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
@@ -97,7 +97,7 @@ async function downloadFile(event) {
9797

9898
const codeJson = document.getElementById("json-result").value
9999
const jsonObject = JSON.parse(codeJson);
100-
const jsonString = JSON.stringify(jsonObject, null, 2);
100+
const jsonString = JSON.stringify(jsonObject, null, 2) + "\n";
101101
const blob = new Blob([jsonString], { type: "application/json" });
102102

103103
// Create anchor element and create download link

0 commit comments

Comments
 (0)