Merge development

This commit is contained in:
2026-08-10 02:48:12 +00:00
parent 941719e4e6
commit f793655cd9
22 changed files with 3240 additions and 733 deletions
+20
View File
@@ -74,3 +74,23 @@ export const extendedJsonReviver = (_propertyKey: string, value: unknown): unkno
// If the value does not match either pattern, return the original value
return value;
};
/**
* Serializes an object to a string using the {@link extendedJsonReplacer}.
*
* @param object The object to serialize.
* @returns The string representation of the object in Extended JSON format.
*/
export const toExtendedJson = (object: unknown): string => {
return JSON.stringify(object, extendedJsonReplacer);
};
/**
* Deserializes a string to an object using the {@link extendedJsonReviver}.
*
* @param serializedObject The string to deserialize.
* @returns The object reconstructed from the string.
*/
export const fromExtendedJson = (serializedObject: string): unknown => {
return JSON.parse(serializedObject, extendedJsonReviver);
};