ToJsonOptions
Options for toJson.
Import:
import type { ToJsonOptions } from 'obsidian-dev-utils/object-utils';Signature:
export interface ToJsonOptionsProperties
| Property | Type | Description |
|---|---|---|
| functionHandlingMode | FunctionHandlingMode | Specifies how functions should be handled in the JSON output. |
| maxDepth | number | Specifies the maximum depth of nested objects to include in the JSON output. Use -1 for no limit. |
| shouldCatchToJSONErrors | boolean | Specifies whether to catch errors in toJSON() and replace them with a placeholder. |
| shouldHandleCircularReferences | boolean | Specifies whether to handle circular references in the JSON output. |
| shouldHandleErrors | boolean | Specifies whether to handle errors in the JSON output. |
| shouldHandleUndefined | boolean | Specifies whether to handle undefined values in the JSON output. |
| shouldSortKeys | boolean | Specifies whether to sort the keys of the JSON output. |
| space | number | string | Specifies the indentation of the JSON output. This can be a number of spaces or a string. |
| tokenSubstitutions | Partial<TokenSubstitutions> | Specifies the substitutions to use in the JSON output. |
Links to this page: