In 9.4.4 using the #>>
operator works for me:
select to_json('test'::text) #>> '{}';
To use with a table column:
select jsoncol #>> '{}' from mytable;
More Related Contents:
- How do I modify fields inside the new PostgreSQL JSON datatype?
- Flatten aggregated key/value pairs from a JSONB field?
- Explanation of JSONB introduced by PostgreSQL
- How to query a json column for empty objects?
- PostgreSQL return result set as JSON array?
- How to create index on JSON field in Postgres?
- How to convert postgres json to integer
- Postgres JSON data type Rails query
- Check if a Postgres JSON array contains a string
- Merging JSONB values in PostgreSQL?
- Collect Recursive JSON Keys In Postgres
- Size limit of JSON data type in PostgreSQL
- In postgresql, how can I return a boolean value instead of string on a jsonb key?
- Go JSON Naming strategy about extends
- How do I initialize a TypeScript Object with a JSON-Object?
- Posting a File and Associated Data to a RESTful WebService preferably as JSON
- How to escape double quotes in JSON
- How to convert arbitrary simple JSON to CSV using jq?
- With JSONDecoder in Swift 4, can missing keys use a default value instead of having to be optional properties?
- JSON Specification and usage of BOM/charset-encoding
- Can’t send a post request when the ‘Content-Type’ is set to ‘application/json’
- In Excel VBA on Windows, for parsed JSON variables what is this JScriptTypeInfo anyway?
- How to format a JSON string as a table using jq?
- How to create dynamic routes with react-router-dom?
- OpenAPI query string parameter with list of objects
- OpenAPI path/query parameters nested structure serialization
- Decoding Error — Expected to decode Dictionary but found an array instead
- Can anyone explain how to get all the mismatch between two responses in karate?
- Can a JSON value contain a multiline string
- Is there an API call for changing user password on keycloak?