Обсуждение: [BUGS] json and jsonb bug report

Поиск
Список
Период
Сортировка

[BUGS] json and jsonb bug report

От
Atsushi Ide
Дата:
Hi

I found a bug in json and jsonb with null value.

select '{"a":null}'::json;
select '{"a":null}'::jsonb;

it's OK, but followings are returned error.

select '{"a":NULL}'::json;
select '{"a":NULL}'::jsonb;

please fix this bug.
thanks.

Re: [BUGS] json and jsonb bug report

От
"David G. Johnston"
Дата:
On Sunday, August 20, 2017, Atsushi Ide <atsushi.530@gmail.com> wrote:
Hi

I found a bug in json and jsonb with null value.

select '{"a":null}'::json;
select '{"a":null}'::jsonb;

it's OK, but followings are returned error.

select '{"a":NULL}'::json;
select '{"a":NULL}'::jsonb;

please fix this bug


 
According to the RFC JSON null is written in all lower case.


Based on that I'd say there is no bug in what you've shown,

David J.