Extracting Nested JSON Data
If you are storing nested JSON data in a postgres JSON column, you are likely going to find yourself in a situation where you need to access some of those nested values in your database code. For instance, you may need to get at the license number in this JSON column
Unfortunately, the ->
operator isn't going to do the trick. You need the json_extract_path
function
Read more about JSON Functions and Operators.
Last updated