diff --git a/main/plugins/json/index.ts b/main/plugins/json/index.ts index d18ed4c8..e5cf6598 100644 --- a/main/plugins/json/index.ts +++ b/main/plugins/json/index.ts @@ -10,7 +10,7 @@ export const parse = (content: string): Promise => { export const serialize = async (data: object): Promise => { try { - return JSON.stringify(data, null, 2); + return JSON.stringify(data, Object.keys(data).sort(), 2); } catch (e) { return undefined; }