From 3e35b37021cf9b9db0de63a2069334df2918e883 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Wed, 31 Aug 2016 13:24:47 -0700 Subject: [PATCH] fix subquery examples --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4312a96..1ee5ae3 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ The dot and wildcard characters can be escaped with '\'. ``` To query an array: ``` -"friends.#[last="Murphy"].first" >> "James" +`friends.#[last="Murphy"].first` >> "James" ``` ## Result Type @@ -165,7 +165,7 @@ for _,name := range result.Array() { You can also query an object inside an array: ```go -name := gjson.Get(json, "programmers.#[lastName="Hunter"].firstName") +name := gjson.Get(json, `programmers.#[lastName="Hunter"].firstName`) println(name.String()) // prints "Elliotte" ```