Re: How to get value wrapped in json? - Mailing list pgsql-general

From David G. Johnston
Subject Re: How to get value wrapped in json?
Date
Msg-id CAKFQuwbgPWjZF36aowa3dSP7FiFwL_nqU6dSd6aUkf9FoHNv2Q@mail.gmail.com
Whole thread Raw
In response to How to get value wrapped in json?  (Shaozhong SHI <shishaozhong@gmail.com>)
List pgsql-general
On Friday, May 6, 2022, Shaozhong SHI <shishaozhong@gmail.com> wrote:
A json object is like this - {3}.

How to get the value -3 out of this json object {3}


That isn’t valid json so your question doesn’t make sense.

Just treat it as a text type and use one or more of the documented text functions to manipulate it.

David J.

 

 

 

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: "A transaction cannot be ended inside a block with exception handlers."
Next
From: Bryn Llewellyn
Date:
Subject: Re: "A transaction cannot be ended inside a block with exception handlers."