Re: JSON path wild cards?

Поиск
Список
Период
Сортировка
От Oleg Bartunov
Тема Re: JSON path wild cards?
Дата
Msg-id CAF4Au4xA-r1c3h1MJhSfKxkf6GV-=Kz441PZvB0evK0ZOk6JFA@mail.gmail.com
обсуждение исходный текст
Ответ на JSON path wild cards?  (Dennis <dennisr@visi.com>)
Список pgsql-general


On Tue, Nov 24, 2015 at 12:39 PM, Dennis <dennisr@visi.com> wrote:
Is there a way to specify a wild card in a json path?

For example I have the following json doc:

[ {“a”:1,”b”: [ { “x”: 7,”y”:8,”z”:9} ] },  {“a”:2,”b”: [ { “x”: 4,”y”:5,”z”:6} ] }, … ]

How do I write a select clause that can return the values for all b x values something like [{b:x}] that would return all the b:x values in the array? e.g. 7 and 4 ...

Also is there a definition of the syntax of a proper json path for use in postgres?

Not in postgres currently, but you may try our jsquery extension https://github.com/postgrespro/jsquery.


Oleg
 

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: error messages not getting logged when running script from cron
Следующее
От: "657985552@qq.com"
Дата:
Сообщение: Re: ??: postgres cpu 100% need help