Re: json accessors

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: json accessors
Дата
Msg-id 50BD4E70.4090006@agliodbs.com
обсуждение исходный текст
Ответ на Re: json accessors  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: json accessors
Список pgsql-hackers
Andrew,

What about doing:

json_get(json, json)
returns json

where parameter #2 is a path expressed as JSON?  For example,

json_get(personal_profile, '[ {contact_info {phone numbers {cell phones}
} } ]')
... would return whatever was in that heirarchical object, in this case
an array of cell phone numbers.

Or am I just reinventing jsonpath?

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add mode where contrib installcheck runs each module in a separa
Следующее
От: Jeff Davis
Дата:
Сообщение: Commits 8de72b and 5457a1 (COPY FREEZE)