I have these table on mu PostgreSQL 9.05:
Table: core
Fields: name
, description
, data
data
f
As of PostgreSQL 9.4 you can also use json_to_record.
Builds an arbitrary record from a JSON object (see note below). As with all functions returning record, the caller must explicitly define the structure of the record with an AS clause.
For example:
select * from json_to_record('{"a":1,"b":[1,2,3],"c":"bar"}') as x(a int, b text, d text)
Returns
a | b | d
---+---------+---
1 | [1,2,3] |