JSON functions

jsonSet

The jsonSet function allows clients to store structured JSON objects under a specific key in a distributed, in-memory data store. If the key already exists, the stored JSON value is overwritten. This is particularly useful for schema-less data use cases like storing user profiles, configurations, and nested records.

-> Read More


jsonAdd

The jsonAdd function allows users to insert or append a key-value pair into an existing JSON object stored at a given key. If the key does not exist, a new JSON object will be created. This command supports adding data at any depth using dot-notation paths.

  • Description Adds a key-value pair to a JSON object stored at the specified key in the database.

If the key doesn’t exist, a new JSON object will be initialized with the provided path and value.

Nested paths are supported using . (dot) notation. Intermediate objects will be created if they do not already exist.

The value must be a valid JSON string or primitive (string, number, boolean, array, etc.).

-> Read More


jsonMerge

The jsonMerge function allows users to merge a new JSON object into an existing JSON object stored at a given key. This enables incremental updates to structured JSON data without overwriting the entire value.

-> Read More


jsonRemove

The jsonRemove function allows users to delete a specific field or the entire JSON object associated with a key stored in the Fleare in-memory database. It supports nested paths using dot notation and ensures safe deletion based on key validation and type checking.

-> Read More


jsonSetRes

The jsonSetRes function stores a JSON object at a specified key in the database and simultaneously replaces specified fields with reference pointers to other keys. This allows relational-like linking between JSON documents using reference tags. This command is useful for creating relationships between JSON documents.

-> Read More


jsonGet

The jsonGet function retrieves JSON data stored at a specified key. You can optionally query nested fields within the JSON object using a dot-path syntax. Additionally, the command supports resolving references (e.g., $ref: values) and attaching the referenced data inline in the response.

-> Read More