*** This version of Confluence is for testing only and contains a copy of content from June 29th 2026. No changes will be preserved. ***
The following jsonb extract expressions will be used to get values from the json data array of a table. They can be used singly or can be nested, can be used in the Select stanza, or can be used in cross join statements in the From stanza:
- jsonb_extract_path ---- this expression specifies the PATH necessary to get the last field entered in the path; the result is a json object and will be enclosed in double-quotes
- jsonb_extract_path_text ---- this expression does the same thing as jsonb_extract_path, but returns a TEXT object (no quotes)
- jsonb_array_elements ---- this expression is used for extracting values within an array object
- table name or alias.jsonb #>> '{path of fields in the hierarchy separated by commas}'
- Example: audit_loan.jsonb #>> '{loan, metadata, updatedByUserId}' — this will get the value for "updatedByUserId"
...