JSON_NORMALIZE
Overview
Normalizes a JSON string by recursively sorting the keys of JSON objects in alphabetical order and removing extra spaces. Suitable for standardizing JSON before comparison or deduplication.
Syntax
Parameters
<json>: STRING type, the JSON string to normalize. Returns NULL when the input is NULL or invalid JSON.
Examples
Related Documentation
- JSON_MINIFY — Compress whitespace only, without sorting keys
- PARSE_JSON — Parse a string into a JSON object
