DESCRIBE AS JSON TABLE

You can retrieve a JSON representation of a table by using the DESCRIBE AS JSON TABLE statement:

DESCRIBE AS JSON TABLE table_name [(field-name, field-name2, ...)] 

or

DESC AS JSON TABLE table_name [(field-name, field-name2, ...)] 

where: