JSON_DETAILED

Syntax

JSON_DETAILED(json_doc[, tab_size]) JSON_PRETTY(json_doc[, tab_size])

Description

Represents JSON in the most understandable way emphasizing nested structures.

JSON_PRETTY is an alias for JSON_DETAILED .

Example

SET @j = '{ "A":1,"B":[2,3]}';  SELECT @j; +--------------------+ | @j | +--------------------+ | { "A":1,"B":[2,3]} | +--------------------+  SELECT JSON_DETAILED(@j); +------------------------------------------------------------+ | JSON_DETAILED(@j) | +------------------------------------------------------------+ | {  "A": 1,  "B":   [  2,  3  ] } | +------------------------------------------------------------+

See Also

This page is licensed: CC BY-SA / Gnu FDL

Last updated

Was this helpful?