In MySQL, the JSON_KEYS()
function returns keys from the top level value of a JSON object. The keys are returned as a JSON array, or, if a path
 argument is given, the top-level keys from the selected path.
You provide the JSON document as an argument to the function.
You can also (optionally) provide a second argument to specify where the “top-level” path starts from within the JSON document.