From 5483aa8dd7058207a17691855891da3793948b12 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Wed, 3 Jun 2015 08:40:26 -0500 Subject: [PATCH] Add some minor tweaks to the code blocks. --- postgres/extracting-nested-json-data.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postgres/extracting-nested-json-data.md b/postgres/extracting-nested-json-data.md index 0dd9414..32004dd 100644 --- a/postgres/extracting-nested-json-data.md +++ b/postgres/extracting-nested-json-data.md @@ -7,8 +7,8 @@ get at the license number in this JSON column ```sql owner ------------------------------------------------------------------------------- -{ "name": "Jason Borne", "license": { "number": "T1234F5G6", "state": "MA" } } +-------------------------------------------------------------------------------- +'{ "name": "Jason Borne", "license": { "number": "T1234F5G6", "state": "MA" } }' ``` Unfortunately, the `->` operator isn't going to do the trick. You need the @@ -19,7 +19,7 @@ Unfortunately, the `->` operator isn't going to do the trick. You need the json_extract_path ------------------- - T1234F5G6 + 'T1234F5G6' ``` Read more about [JSON Functions and