pretty print json metadata file during export from console (close #3690) (#3694)

This commit is contained in:
Karthikeyan Chinnakonda 2020-01-14 16:32:01 +05:30 committed by Rikin Kachhia
parent feb4a05618
commit f20fc80cfc

View File

@ -225,7 +225,10 @@ export const downloadObjectAsJsonFile = (fileName, object) => {
: fileName + jsonSuffix;
const dataString =
'data:' + contentType + ',' + encodeURIComponent(JSON.stringify(object));
'data:' +
contentType +
',' +
encodeURIComponent(JSON.stringify(object, null, 2));
downloadFile(fileNameWithSuffix, dataString);
};