pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: shaurya jain <12345shaurya@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Json:- Accepting 'integer' value
Date: Tue, 13 Jul 2021 15:10:15 -0400
Message-ID: <3353741.1626203415@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHHJ3NSF1cLZ2Wika_oQDq54a0hc7DvVh66N0PgjkGqB9UfmAA@mail.gmail.com>
References: <CAHHJ3NSF1cLZ2Wika_oQDq54a0hc7DvVh66N0PgjkGqB9UfmAA@mail.gmail.com>

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





view thread (2+ messages)

Message-ID: <3353741.1626203415@sss.pgh.pa.us>
Permalink:  ../3353741.1626203415@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3353741.1626203415@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, 12345shaurya@gmail.com
  Subject: Re: Json:- Accepting 'integer' value
  In-Reply-To: <3353741.1626203415@sss.pgh.pa.us>
  References: <CAHHJ3NSF1cLZ2Wika_oQDq54a0hc7DvVh66N0PgjkGqB9UfmAA@mail.gmail.com> <3353741.1626203415@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox