Update README.md

This commit is contained in:
Masaaki Goshima 2021-02-08 18:30:27 +09:00 committed by GitHub
parent 13751b0f6f
commit b286747e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -23,6 +23,22 @@ Replace import statement from `encoding/json` to `github.com/goccy/go-json`
+import "github.com/goccy/go-json"
```
# JSON library comparison
| name | encoder | decoder | compatible with `encoding/json` |
| :----: | :------: | :-----: | :-----------------------------: |
| encoding/json | ○ | ○ | N/A |
| [json-iterator/go](https://github.com/json-iterator/go) | ○ | ○ | △ |
| [easyjson](https://github.com/mailru/easyjson) | ○ | ○ | ✗ |
| [gojay](https://github.com/francoispqt/gojay) | ○ | ○ | ✗ |
| [segmentio/encoding/json](github.com/segmentio/encoding/json) | ○ | ○ | ○ |
| [jettison](github.com/wI2L/jettison) | ○ | ✗ | ✗ |
| [simdjson-go](https://github.com/minio/simdjson-go) | ✗ | ○ | ✗ |
| go-json | ○ | ○ | ○ |
- `json-iterator/go` isn't compatible with `encoding/json` in many ways, but it hasn't been supported for a long time.
# Benchmarks
```