diff --git a/lib/Persistent.ts b/lib/Persistent.ts index 0dba60c..2c3f0be 100644 --- a/lib/Persistent.ts +++ b/lib/Persistent.ts @@ -35,8 +35,8 @@ export abstract class Persistent implements Assignable, Serializable { public serialize (formatted = false): string { if (formatted) - return JSON.stringify (this._data); - return JSON.stringify (this._data, null, 2); + return JSON.stringify (this._data, null, 2); + return JSON.stringify (this._data); } private check_type (value: unknown, prop: PersistentTypeString): boolean {