Markdown Fox

JSON to JSONB

field-notes.json
JSON source
PostgreSQL expression
Saved locally

Use JSON in a PostgreSQL query

Paste {"enabled":true} to generate $json${"enabled":true}$json$::jsonb. Put the result after SELECT to inspect the value in your SQL client, or use it as the value for a JSONB column in an INSERT.

The converter chooses a different dollar-quote delimiter if the input already contains $json$. PostgreSQL applies its own limits when you run the query. To inspect the nested values first, open the JSON formatter and tree viewer.