DB
FunctionsJSON

JSON

80 JSON functions in the NYXDB native function registry, with signatures, briefs, and measured medians where available.

80 functions in the json family. Each name links to its page; marks the variadic argument list (the engine declares no named parameters). A Measured value appears only where a benchmark corpus case joins by name (server-class hardware, median).

FunctionTypeDescriptionMeasured
as_json(…) → JSONscalarConvert a value to JSON.
distinct_json_paths(…) → JSONaggregateDiscover JSON paths.
distinct_json_paths_and_types(…) → JSONaggregateDiscover JSON paths with inferred types.
from_json(…) → JSONscalarParse JSON into a typed value.
is_valid_json(…) → BoolscalarValidate JSON.
json_agg(…) → JSONaggregateAggregate values into a JSON array.
json_agg_strict(…) → JSONaggregateAggregate values into a JSON array (strict).
json_all_paths(…) → JSONscalarDiscover JSON paths.
json_all_paths_with_types(…) → JSONscalarDiscover JSON paths with inferred types.
json_array_element(…) → JSONscalarGet JSON array element.
json_array_element_text(…) → StringscalarGet JSON array element as text.
json_array_elements(…) → JSONscalarExpand JSON array elements.
json_array_elements_text(…) → JSONscalarExpand JSON array elements as text.
json_array_length(…) → UInt64scalarLength of a JSON array.
json_build_array(…) → JSONscalarBuild a JSON array.
json_build_object(…) → JSONscalarBuild a JSON object.
json_concat(…) → JSONscalarConcatenate JSON values.
json_delete(…) → JSONscalarDelete a JSON key or array element.
json_delete_path(…) → JSONscalarDelete a JSON path.
json_dynamic_paths(…) → JSONscalarDiscover dynamic JSON paths.
json_dynamic_paths_with_types(…) → JSONscalarDiscover dynamic JSON paths with inferred types.
json_each(…) → JSONscalarExpand JSON object fields.
json_each_text(…) → JSONscalarExpand JSON object fields as text.
json_encode(…) → StringscalarEncode as JSON text.
json_exists(…) → BoolscalarTest JSON key/path existence.
json_exists_all(…) → BoolscalarTest existence of all keys/paths.
json_exists_any(…) → BoolscalarTest existence of any key/path.
json_extract(…) → JSONscalarExtract a value from JSON.
json_extract_array(…) → JSONscalarExtract JSON array.
json_extract_array_raw(…) → JSONscalarExtract JSON array as raw JSON.
json_extract_bool(…) → BoolscalarExtract a boolean from JSON by path.
json_extract_float(…) → Float64scalarExtract a floating-point number from JSON by path.
json_extract_int(…) → Int64scalarExtract a signed integer from JSON by path.
json_extract_keys(…) → JSONscalarExtract keys from a JSON object.
json_extract_keys_and_values(…) → JSONscalarExtract keys and typed values.
json_extract_keys_and_values_raw(…) → JSONscalarExtract keys and raw JSON values.
json_extract_path(…) → JSONscalarExtract JSON value by path.
json_extract_path_text(…) → StringscalarExtract JSON value by path as text.
json_extract_raw(…) → JSONscalarExtract raw JSON fragment.
json_extract_string(…) → StringscalarExtract a string from JSON by path.
json_extract_uint(…) → UInt64scalarExtract an unsigned integer from JSON by path.
json_has(…) → BoolscalarTest JSON contains key or value.
json_hash(…) → UInt64scalarHash a JSON document.
json_hash_extended(…) → StringscalarHash a JSON document (extended).
json_insert(…) → JSONscalarInsert a value at a JSON path.
json_key(…) → StringscalarJSON key at a position.
json_length(…) → UInt64scalarLength of a JSON array or object.
json_merge_patch(…) → JSONscalarJSON Merge Patch.
json_object(…) → JSONscalarBuild a JSON object.
json_object_agg(…) → JSONaggregateAggregate key/value pairs into a JSON object.
json_object_agg_strict(…) → JSONaggregateAggregate key/value pairs into a JSON object (strict).
json_object_agg_unique(…) → JSONaggregateAggregate key/value pairs into a JSON object (unique keys).
json_object_agg_unique_strict(…) → JSONaggregateAggregate key/value pairs into a JSON object (unique, strict).
json_object_field(…) → JSONscalarGet JSON object field.
json_object_field_text(…) → StringscalarGet JSON object field.
json_object_keys(…) → JSONscalarJSON object keys.
json_path_exists(…) → BoolscalarTest SQL/JSON path existence.
json_path_exists_tz(…) → BoolscalarTest SQL/JSON path existence (time-zone aware).
json_path_match(…) → BoolscalarSQL/JSON path predicate.
json_path_match_tz(…) → BoolscalarSQL/JSON path predicate (time-zone aware).
json_path_query(…) → JSONscalarSQL/JSON path query.
json_path_query_array(…) → JSONscalarSQL/JSON path query (array).
json_path_query_array_tz(…) → JSONscalarSQL/JSON path query (array) (time-zone aware).
json_path_query_first(…) → JSONscalarSQL/JSON path first match.
json_path_query_first_tz(…) → JSONscalarSQL/JSON path first match (time-zone aware).
json_path_query_tz(…) → JSONscalarSQL/JSON path query (time-zone aware).
json_pretty(…) → StringscalarPretty-print JSON.
json_query(…) → JSONscalarSQL/JSON query result.
json_set(…) → JSONscalarSet a value at a JSON path.
json_set_lax(…) → JSONscalarSet a value at a JSON path (lax).
json_shared_data_paths(…) → JSONscalarDiscover JSON paths.
json_shared_data_paths_with_types(…) → JSONscalarDiscover JSON paths with inferred types.
json_strip_nulls(…) → JSONscalarRemove null-valued keys.
json_type(…) → StringscalarJSON type of a value.
json_typeof(…) → StringscalarJSON type of a value.
json_value(…) → StringscalarSQL/JSON scalar value.
json_values(…) → JSONscalarSQL/JSON multiple scalar values.
row_to_json(…) → JSONscalarConvert a row to a JSON object.
to_json(…) → JSONscalarConvert a value to JSON.
to_json_string(…) → StringscalarConvert a value to JSON text.