Skip to main content

JSON functions overview

The following table lists the JSON functions supported by seekdb.

FunctionDescription
JSON_ARRAYCreates a JSON array.
JSON_ARRAYAGGAggregates results into a single JSON array.
JSON_ARRAY_APPENDAppends the specified value to a JSON document.
JSON_APPENDAppends the specified value to a JSON document.
JSON_ARRAY_INSERTInserts an array into a JSON document.
JSON_CONTAINSChecks whether the specified JSON document is contained in the target JSON document.
JSON_CONTAINS_PATHChecks whether the data in the specified path is contained in the target JSON document.
JSON_DEPTHReturns the maximum depth of a JSON document.
JSON_EXTRACTReturns data from a JSON document.
JSON_INSERTInserts data into a JSON document.
JSON_KEYSReturns an array of keys corresponding to the specified path in a JSON document.
JSON_LENGTHReturns the length of a JSON document.
JSON_MERGEMerges multiple JSON documents.
JSON_MERGE_PATCHMerges multiple JSON documents, and does not retain members with duplicate keys.
JSON_MERGE_PRESERVEMerges multiple JSON documents.
JSON_OBJECTCreates a JSON object.
JSON_OVERLAPSCompares two JSON documents.
JSON_PRETTYPrints a JSON document in a formatted manner.
JSON_QUOTEQuotes a JSON document.
JSON_REMOVERemoves data from a JSON document.
JSON_REPLACEReplaces values in a JSON document.
JSON_SEARCHReturns the path of a value in a JSON document.
JSON_SETInserts data into a JSON document.
JSON_STORAGE_SIZEReturns the number of binary bytes stored in a JSON document.
JSON_TABLEExtracts data from a JSON document and returns a relational table with specified columns.
JSON_TYPEReturns the type of a JSON value.
JSON_UNQUOTEUnquotes a JSON value.
JSON_VALUEExtracts and returns a value from a JSON document at the specified path.
JSON_VALIDChecks whether a JSON value is valid.
JSON_OBJECTAGGReturns a JSON object that contains key-value pairs.
MEMBER OFReturns 1 if the retrieved element is the same as any element in the JSON array, otherwise returns 0.
JSON_SCHEMA_VALIDATION_REPORTReturns 1 if the JSON document conforms to the JSON schema, otherwise returns 0.
JSON_SCHEMA_VALIDReturns a JSON schema validation report in JSON format.