|
1 |
| -[](https://travis-ci.org/valyala/fastjson) |
2 |
| -[](http://godoc.org/github.com/valyala/fastjson) |
3 |
| -[](https://goreportcard.com/report/github.com/valyala/fastjson) |
4 |
| -[](https://codecov.io/gh/valyala/fastjson) |
| 1 | +# fastjson |
5 | 2 |
|
6 |
| -# fastjson - fast JSON parser and validator for Go |
| 3 | +[![GoDoc Widget]][GoDoc] [![Go Report Card Widget]][Go Report Card] |
7 | 4 |
|
| 5 | +[GoDoc]: https://godoc.org/github.com/aperturerobotics/fastjson |
| 6 | +[GoDoc Widget]: https://godoc.org/github.com/aperturerobotics/fastjson?status.svg |
| 7 | +[Go Report Card Widget]: https://goreportcard.com/badge/github.com/aperturerobotics/fastjson |
| 8 | +[Go Report Card]: https://goreportcard.com/report/github.com/aperturerobotics/fastjson |
| 9 | + |
| 10 | +**fastjson** is an alternative to **encoding/json** which does not use reflection. |
| 11 | + |
| 12 | +**This is a fork of the [upstream project] with some improvements.** |
| 13 | + |
| 14 | +[upstream project]: https://github.com/valyala/fastjson |
8 | 15 |
|
9 | 16 | ## Features
|
10 | 17 |
|
11 |
| - * Fast. As usual, up to 15x faster than the standard [encoding/json](https://golang.org/pkg/encoding/json/). |
| 18 | + * Up to 15x faster than the standard [encoding/json](https://golang.org/pkg/encoding/json/). |
12 | 19 | See [benchmarks](#benchmarks).
|
13 | 20 | * Parses arbitrary JSON without schema, reflection, struct magic and code generation
|
14 | 21 | contrary to [easyjson](https://github.com/mailru/easyjson).
|
@@ -200,7 +207,7 @@ BenchmarkValidate/twitter/fastjson 2000 1036796 ns/op 609.10 MB/s
|
200 | 207 |
|
201 | 208 | ## FAQ
|
202 | 209 |
|
203 |
| - * Q: _There are a ton of other high-perf packages for JSON parsing in Go. Why creating yet another package?_ |
| 210 | + * Q: _There are a ton of other high-perf packages for JSON parsing in Go. Why create yet another package?_ |
204 | 211 | A: Because other packages require either rigid JSON schema via struct magic
|
205 | 212 | and code generation or perform poorly when multiple unrelated fields
|
206 | 213 | must be obtained from the parsed JSON.
|
|
0 commit comments