Re: JSON NULL handling
Posted by: Doeyull Kim
Date: January 03, 2019 02:54AM

SET @doc = JSON_OBJECT('a', NULL);
SELECT JSON_UNQUOTE(IF(JSON_TYPE(JSON_EXTRACT(@doc,'$.a')) = 'NULL', NULL, JSON_EXTRACT(@doc,'$.a'))) as C1,
JSON_UNQUOTE(JSON_EXTRACT(@doc,'$.b')) as C2;

Options: ReplyQuote


Subject
Views
Written By
Posted
14121
October 29, 2018 06:54PM
Re: JSON NULL handling
3091
January 03, 2019 02:54AM
2453
January 03, 2019 07:24AM
2120
January 03, 2019 08:28PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.