MariaDB JSON Functions

This page lists MariaDB JSON functions that perform operations on JSON values.

  1. JSON_ARRAY_APPEND()

    In MariaDB, JSON_ARRAY_APPEND() is a built-in function that appends a value to a specified array in a JSON document and returns the modified JSON document.
  2. JSON_ARRAY_INSERT()

    In MariaDB, JSON_ARRAY_INSERT() is a built-in function that inserts a value into a specified JSON array and returns a new JSON document.
  3. JSON_ARRAY()

    In MariaDB, JSON_ARRAY() is a built-in function that returns a JSON array containing all parameters.
  4. JSON_ARRAYAGG()

    In MariaDB, JSON_ARRAYAGG() is a built-in function that aggregates the value of a specified column or expression into a JSON array.
  5. JSON_COMPACT()

    In MariaDB, JSON_COMPACT() is a built-in function that removes all unnecessary spaces from a JSON document to reduce the size of the JSON document.
  6. JSON_CONTAINS_PATH()

    In MariaDB, JSON_CONTAINS_PATH() is a built-in function that checks whether a value exists at a given path in a JSON document.
  7. JSON_CONTAINS()

    In MariaDB, JSON_CONTAINS() is a built-in function that checks whether a JSON document contains another JSON document.
  8. JSON_DEPTH()

    In MariaDB, JSON_DEPTH() is a built-in function that returns the maximum depth of a given JSON document.
  9. JSON_DETAILED()

    In MariaDB, JSON_DETAILED() is a built-in function that formats the output of a JSON document so that it is easier to read.
  10. JSON_EXISTS()

    In MariaDB, JSON_EXISTS() is a built-in function that checks whether a given path exists in a given JSON document.
  11. JSON_EXTRACT()

    In MariaDB, JSON_EXTRACT() is a built-in function that extracts data from a JSON document given one or more paths.
  12. JSON_INSERT()

    In MariaDB, JSON_INSERT() is a built-in function that inserts one or more pieces of data into a JSON document and returns the new JSON document.
  13. JSON_KEYS()

    In MariaDB, JSON_KEYS() is a built-in function that returns an array containing the topmost member (key) of the specified JSON object.
  14. JSON_LENGTH()

    In MariaDB, JSON_LENGTH() is a built-in function that returns the length of a JSON document or a node within a JSON document specified by a path.
  15. JSON_LOOSE()

    In MariaDB, JSON_LOOSE() is a built-in function that adds whitespace to JSON documents to make them more readable.
  16. JSON_MERGE_PATCH()

    In MariaDB, JSON_MERGE_PATCH() is a built-in function that merges two or more JSON documents and returns the merged result.
  17. JSON_MERGE_PRESERVE()

    In MariaDB, JSON_MERGE_PRESERVE() is a built-in function that merges two or more JSON documents and returns the result.
  18. JSON_MERGE()

    In MariaDB, JSON_MERGE() is a built-in function that merges two or more JSON documents and returns the result.
  19. JSON_OBJECT()

    In MariaDB, JSON_OBJECT() is a built-in function that returns a JSON object containing all key-value pairs specified by parameters.
  20. JSON_OBJECTAGG()

    In MariaDB, JSON_OBJECTAGG() is a built-in function that aggregates key-value pairs with the first parameter as the key and the second parameter as the value into a JSON object.
  21. JSON_QUERY()

    In MariaDB, JSON_QUERY() is a built-in function that returns an object or array from a JSON document based on the provided path.
  22. JSON_QUOTE()

    In MariaDB, JSON_QUOTE() is a built-in function that wraps a value in double quotes, making it a JSON string value.
  23. JSON_REMOVE()

    In MariaDB, JSON_REMOVE() is a built-in function that removes the data specified by path from a JSON document.
  24. JSON_REPLACE()

    In MariaDB, JSON_REPLACE() is a built-in function that replaces existing data in a JSON document and returns the new JSON document.
  25. JSON_SEARCH()

    In MariaDB, JSON_SEARCH() is a built-in function that returns the path of a given value within a given JSON document.
  26. JSON_SET()

    In MariaDB, JSON_SET() is a built-in function that inserts or updates data in a JSON document and returns the new JSON document.
  27. JSON_TABLE()

    In MariaDB, JSON_TABLE() is a built-in function that extracts data from a specified JSON document and returns a relational table with specified columns.
  28. JSON_TYPE()

    In MariaDB, JSON_TYPE() is a built-in function that returns the type of a given JSON value as a string.
  29. JSON_UNQUOTE()

    In MariaDB, JSON_UNQUOTE() is a built-in function that de-quotes a JSON string and returns the result as a string.
  30. JSON_VALID()

    In MariaDB, JSON_VALID() is a built-in function that returns 0 and 1 to indicate whether the given argument is a valid JSON document.
  31. JSON_VALUE()

    In MariaDB, JSON_VALUE() is a built-in function that returns a scalar value from a JSON document based on the provided path.