export async function main(value: object | string, indentation = 2) {
if (typeof value === "string") {
value = JSON.parse(value);
}
return JSON.stringify(value, null, indentation);
}
Submitted by admin 479 days ago
export async function main(value: object|string, indentation = 2) {
if (typeof value === 'string') {
value = JSON.parse(value);
}
return JSON.stringify(value, null, indentation);
}
Submitted by jaller94 846 days ago