Function
JSON_TYPE
takes JSON content and returns its type
SELECT 
    JSON_TYPE('{}'),  -- returns OBJECT
    JSON_TYPE('[]'),  -- returns ARRAY
    JSON_TYPE(NULL)   -- returns NULL
by Valeri Tandilashvili
4 years ago
MySQL
Full MySQL Course for Beginners
2
Pro tip: use ```triple backticks around text``` to write in code fences