[MDEV-12063] document missing json functions Created: 2017-02-14  Updated: 2017-03-30  Resolved: 2017-03-30

Status: Closed
Project: MariaDB Server
Component/s: Documentation
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Sergei Golubchik Assignee: Ian Gilfillan
Resolution: Fixed Votes: 0
Labels: None


 Description   

These functions are not documented yet:

  • JSON_COMPACT
  • JSON_DETAILED
  • JSON_KEYS
  • JSON_LENGTH
  • JSON_LOOSE
  • JSON_REMOVE
  • JSON_REPLACE
  • JSON_SET
  • JSON_SEARCH
  • JSON_TYPE
  • JSON_UNQUOTE


 Comments   
Comment by Ian Gilfillan [ 2017-02-14 ]

Already underway, some of these are done, the rest should be completed today.

Comment by Alexey Botchkov [ 2017-02-14 ]

Functions unique for MariaDB:
JSON_COMPACT
JSON_LOOSE
JSON_DETAILED
They are all 'cosmetic' functions. They don't change the JSON, only add or remove spaces to make it look better in some sence.
JSON_COMPACT removes all the unnecessary spaces so the json string is as short as possible.
JSON_LOOSE - adds some spaces to make json look a bit more readable. That representation is what MySQL returns.
JSON_DETAILED(json [, tab_size]) represents JSON in most understandable way emphasizing nested structures.

Comment by Alexey Botchkov [ 2017-02-14 ]

These 'cosmetic' functions can BTW be used to 'trim' the output of ST_AsGeoJSON or EXPLAIN JSON functions.

Comment by Ian Gilfillan [ 2017-02-15 ]

The others all exist, but I can't find JSON_COMPACT, _LOOSE and _DETAILED in Git or JIRA. Are these still to be added to 10.2.4?

Generated at Thu Feb 08 07:54:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.