Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-16375

Function to normalize a json value

    XMLWordPrintable

    Details

      Description

      Background is this question on stackexchange:

      https://dba.stackexchange.com/questions/208481/mariadb-compare-json

      The task is to provide a function that can be used to compare 2 json documents for equality, then name can be e.g JSON_NORMALIZE

      JSON_COMPACT already takes care of removing spaces, but this is not sufficient.
      Keys need to be (recursively) sorted , and if spaces are removed, then documents can be compared as binary strings.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              wlad Vladislav Vaintroub
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: