Expand description
JSON1 foundations for fsqlite-ext-json (bd-3cvl).
This module currently provides:
- JSON validation/minification (
json,json_valid) - JSONB encode/decode helpers (
jsonb,jsonb_*,json_validJSONB flags) - JSON type inspection (
json_type) - JSON path extraction with SQLite-like single vs multi-path semantics (
json_extract) - JSON value constructors and aggregates (
json_quote,json_array,json_object,json_group_array,json_group_object) - mutators (
json_set,json_insert,json_replace,json_remove,json_patch) - formatting and diagnostics (
json_pretty,json_error_position,json_array_length)
Path support in this slice:
$root$.keyobject member$."key.with.dots"quoted object member$[N]array index$[#]append pseudo-index$[#-N]reverse array index
Structs§
- Json
Array Func - Json
Array Length Func - Json
Arrow Func - Json
Double Arrow Func - Json
Each Cursor - Cursor for
json_eachvirtual table scans. - Json
Each Vtab - Virtual table module for
json_each. - Json
Error Position Func - Json
Extract Func - Json
Func - Json
Insert Func - Json
Object Func - Json
Patch Func - Json
Pretty Func - Json
Quote Func - Json
Remove Func - Json
Replace Func - Json
SetFunc - Json
Table Row - Row shape produced by
json_eachandjson_tree. - Json
Tree Cursor - Cursor for
json_treevirtual table scans. - Json
Tree Vtab - Virtual table module for
json_tree. - Json
Type Func - Json
Valid Func - Jsonb
Array Func - Jsonb
Extract Func - Jsonb
Func - Jsonb
Insert Func - Jsonb
Object Func - Jsonb
Patch Func - Jsonb
Remove Func - Jsonb
Replace Func - Jsonb
SetFunc
Constants§
- JSON_
TABLE_ COLUMN_ NAMES - Output columns for the
json_each/json_treetable-valued functions.
Functions§
- json
- Parse and minify JSON text.
- json_
array - Build a JSON array from SQL values.
- json_
array_ length - Return the array length at root or path, or
Nonewhen target is not an array. - json_
arrow - Extract with
->semantics: always returns JSON text for the selected node. - json_
double_ arrow - Extract with
->>semantics: returns SQL-native value. - json_
each - Table-valued
json_each: iterate immediate children at root orpath. - json_
error_ position - Return 0 for valid JSON, otherwise a 1-based position for first parse error.
- json_
extract - Extract JSON value(s) by path, following SQLite single vs multi-path behavior.
- json_
from_ jsonb - Convert JSONB bytes back into minified JSON text.
- json_
group_ array - Aggregate rows into a JSON array, preserving SQL NULL as JSON null.
- json_
group_ object - Aggregate key/value pairs into a JSON object.
- json_
insert - Insert JSON values at path(s) only when path does not already exist.
- json_
object - Build a JSON object from alternating key/value SQL arguments.
- json_
patch - Apply RFC 7396 JSON Merge Patch.
- json_
pretty - Pretty-print JSON with default 4-space indentation or custom indent token.
- json_
quote - Quote a SQL value as JSON.
- json_
remove - Remove JSON values at path(s). Array removals compact the array.
- json_
replace - Replace JSON values at path(s) only when path already exists.
- json_
set - Set JSON values at path(s), creating object keys when missing.
- json_
tree - Table-valued
json_tree: recursively iterate subtree at root orpath. - json_
type - Return JSON type name at the root or an optional path.
- json_
valid - Validate JSON text under flags compatible with SQLite
json_valid. - json_
valid_ blob - Validate binary JSONB payloads and/or JSON text (when UTF-8).
- jsonb
- Convert JSON text into JSONB bytes.
- jsonb_
array - Build JSONB from SQL values.
- jsonb_
extract - JSONB variant of
json_extract. - jsonb_
group_ array - JSONB variant of
json_group_array. - jsonb_
group_ object - JSONB variant of
json_group_object. - jsonb_
insert - JSONB variant of
json_insert. - jsonb_
object - Build JSONB object from alternating key/value SQL arguments.
- jsonb_
patch - JSONB variant of
json_patch. - jsonb_
remove - JSONB variant of
json_remove. - jsonb_
replace - JSONB variant of
json_replace. - jsonb_
set - JSONB variant of
json_set. - register_
json_ scalars - Register JSON1 scalar functions into a
FunctionRegistry.