@stryke/json
Version:
A package containing JSON parsing/stringify utilities used by Storm Software.
10 lines (9 loc) • 491 B
TypeScript
export declare const invalidKeyChars: readonly ["@", "/", "#", "$", " ", ":", ";", ",", ".", "!", "?", "&", "=", "+", "-", "*", "%", "^", "~", "|", "\\", "\"", "'", "`", "{", "}", "[", "]", "(", ")", "<", ">"];
/**
* Stringify a value to a JSON-like string.
*
* @param value - The value to stringify
* @param spacing - The spacing to use for the stringification
* @returns The stringified value
*/
export declare const stringify: (value: unknown, spacing?: string | number) => string;