Re: Json:- Accepting 'integer' value

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Json:- Accepting 'integer' value
Дата
Msg-id 3353741.1626203415@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Json:- Accepting 'integer' value  (shaurya jain <12345shaurya@gmail.com>)
Список pgsql-general
shaurya jain <12345shaurya@gmail.com> writes:
> But while we checking the same thing in Oracle it doesn't accept this. Is
> it an issue with Postgres data type?

I'd call it an issue with Oracle.

We follow RFC 7159, which specifies that "bare" scalars (numbers,
strings, booleans) are valid JSON values.  I see though that it
says

   A JSON text is a serialized value.  Note that certain previous
   specifications of JSON constrained a JSON text to be an object or an
   array.

so apparently Oracle is following some obsolete version of the spec.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Rich Shepard
Дата:
Сообщение: Re: psycopg2 mail list subscription issues
Следующее
От: Tom Lane
Дата:
Сообщение: Re: psycopg2 mail list subscription issues