Comments - Differences between JSON_QUERY and JSON_VALUE
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Why?
It would seem that you have gone out of your way to create difficulties in programming to this interface ... particularly in writing stored functions and procedures that deal with data generically.
So that I must write .. set @content = ifnull( json_query(json,path),json_value(json,path)); in order to get whatever is at 'path'
Because it's what SQL Standard requires us to to. I personally also think it's inconvenient.
Try JSON_EXTRACT(), may be it'll work better for you.