Skip to content

Configuration

0xMaxLab edited this page Mar 16, 2026 · 3 revisions

updateConfiguration(config)

Updates the library's behavior by merging a new configuration object into the global state.

Property Type Default Description
debugEnabled boolean false Enables detailed logging for debugging JSON transformations.
fileCacheEnabled boolean true Toggles the internal file system caching mechanism.
lateConstructorEnabled boolean true Delays object construction to improve initial load performance.
crashOnNestedCloneEnabled boolean false Throws an error if a clone operation is triggered within another clone.

Usage Example

import * as RichJson from "@rjson/parser"

// Enable debug mode and disable caching
RichJson.updateConfiguration({
    debugEnabled: true,
    fileCacheEnabled: false
});

Author’s Recommendation: next read FileHelper

Clone this wiki locally