From efdecd1a4675dd5ed3c737ea16450383840c83fc Mon Sep 17 00:00:00 2001 From: Justin Song <121644228+Jung-GunSong@users.noreply.github.com> Date: Wed, 7 Feb 2024 05:49:37 -0500 Subject: [PATCH] Updated wins app script to add spacing and line breaks to wins json feed (#6205) * changed JSON.stringify's spacer parameter to 5 to cause indentation between items and line breaks inbetwen arrays * added to JSON.strinify() to line 68 to add spacing to _wins-data.json --- google-apps-scripts/wins-form-responses/Code.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-apps-scripts/wins-form-responses/Code.js b/google-apps-scripts/wins-form-responses/Code.js index f43d46a2e0..e676a55b83 100644 --- a/google-apps-scripts/wins-form-responses/Code.js +++ b/google-apps-scripts/wins-form-responses/Code.js @@ -65,7 +65,7 @@ function main() { */ // Create an array of objects (key-value pair) for _wins-data.json - const cleanedAndFormattedKeyValueData = JSON.stringify(sortedKeyValueData); + const cleanedAndFormattedKeyValueData = JSON.stringify(sortedKeyValueData, null, 5); const encodedKeyValueData = Utilities.base64Encode(`${cleanedAndFormattedKeyValueData}`, Utilities.Charset.UTF_8); // Retrieves latest sha of the _wins data file, which is needed for edits later