json results parsing - Mailing list pgsql-hackers

From Charles Cui
Subject json results parsing
Date
Msg-id CA+SXE9vmOYcFiXG3cVZMF=4+TE-TwnXY0CW4Q2p8QD1G8Q-XyQ@mail.gmail.com
Whole thread Raw
Responses Re: json results parsing  (Michael Paquier <michael@paquier.xyz>)
Re: json results parsing  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
Hi mentors and hackers,

For some APIs, it returns set of results, for example, json_each(json) and json_object_keys(). 
Basically, I want to call these json API inside a plugin, and the return value for these APIs are Datum. I am wondering how to parse a set of json results from Datum in postgresql? Seems the helper functions I am aware of are only for simple types. Are there any examples to demonstrate the best practice of how to do that?





Thanks, Charles!

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: I'd like to discuss scaleout at PGCon
Next
From: Euler Taveira
Date:
Subject: Re: ALTER CONSTRAINT change action