Re: [GENERAL] return jsonb without field label

2015-07-04 Thread Adrian Klaver
On 07/03/2015 06:28 PM, john.tiger wrote: have tables with : create table mydocs (id serial primary key, data jsonb) when I do a select data from mydocs it comes back as {data: {my jsonb fields}} which then gets passed into a template - don't want to have to keep using <%= article.data.name %

[GENERAL] return jsonb without field label

2015-07-03 Thread john.tiger
have tables with : create table mydocs (id serial primary key, data jsonb) when I do a select data from mydocs it comes back as {data: {my jsonb fields}} which then gets passed into a template - don't want to have to keep using <%= article.data.name %> instead of just data.name probably e