Skip to content

Commit 4afeaaa

Browse files
committed
Update README.md
1 parent 13fd52d commit 4afeaaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Alternative JSON parser for Go (so far fastest)
22

3-
It does not require you to know the structure of the payload (eg. create structs), and allows accessing fields by providing the path to them. It is up to **10 times faster** then standard `encoding/json` package (depending on payload size and usage), **allocates almost no memory**. See benchmarks below.
3+
It does not require you to know the structure of the payload (eg. create structs), and allows accessing fields by providing the path to them. It is up to **10 times faster** then standard `encoding/json` package (depending on payload size and usage), **allocates no memory**. See benchmarks below.
44

55
## Rationale
66
Originally I made this for a project that relies on a lot of 3rd party APIs that can be unpredictable and complex.
@@ -90,7 +90,7 @@ If no keys are provided it will try to extract the closest JSON value (simple on
9090
```
9191
func GetString(data []byte, keys ...string) (val string, err error)
9292
```
93-
Returns strings properly handing escaped and unicode characters. Note that this will cause additioal memory allocations.
93+
Returns strings properly handing escaped and unicode characters. Note that this will cause additional memory allocations.
9494

9595
### **`GetUnsafeString`**
9696
If you need string in your app, and ready to sacrifice with support of escaped symbols in favor of speed. It returns string mapped to exsting byte slice memory, without any allocations:

0 commit comments

Comments
 (0)