Class JsonPreferences

java.lang.Object
is.codion.common.model.preferences.JsonPreferences

public final class JsonPreferences extends Object
In-memory hierarchical JSON storage for preferences — the storage half of JsonPreferencesStore, without any file handling. Path-addressed ("a/b/c") get/put/remove of string values (a value that is itself valid JSON is stored nested), plus child-node listing. Thread-safe.

jsonPreferences() wraps a fresh instance as a free-floating, file-less Preferences node — useful for capturing or transferring preference state in memory (dependency panels, migration) and for hermetic tests that must not touch the real user preferences store.

See Also: