From 0bedaf01cb6beb2806bd088eafead2999829b569 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Mon, 8 May 2017 07:47:07 -0700 Subject: [PATCH] updated wording --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c3289c2..ee03c8b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ $ go get -u github.com/tidwall/gjson This will retrieve the library. ## Get a value -Get searches json for the specified path. A path is in dot syntax, such as "name.last" or "age". This function expects that the json is well-formed and validates. Invalid json will not panic, but it may return back unexpected results. When the value is found it's returned immediately. +Get searches json for the specified path. A path is in dot syntax, such as "name.last" or "age". This function expects that the json is well-formed. Bad json will not panic, but it may return back unexpected results. When the value is found it's returned immediately. ```go package main @@ -240,7 +240,7 @@ It's a drop in replacement for `json.Unmarshal` and you can typically see a 3-4x boost in performance without the need for external generators. This function works almost identically to `json.Unmarshal` except that it -expects the json to be well-formed prior to being called. Invalid json +expects the json to be well-formed prior to being called. Bad json will not panic or cause a decoding error. Another difference is that `gjson.Unmarshal` will automatically attempt to