2017-01-05 21:23:08 +08:00
[](https://goreportcard.com/report/github.com/json-iterator/go)
2016-12-11 23:55:55 +08:00
jsoniter (json-iterator) is fast and flexible JSON parser available in [Java ](https://github.com/json-iterator/java ) and [Go ](https://github.com/json-iterator/go )
2016-12-01 00:56:25 +08:00
2017-06-02 11:20:24 +08:00
# Usage
2016-12-01 00:56:25 +08:00
2017-06-02 11:20:24 +08:00
100% compatibility with standard lib
2016-12-13 01:13:15 +08:00
2017-06-02 11:20:24 +08:00
Replace
2016-12-13 01:13:15 +08:00
2017-06-02 11:20:54 +08:00
```go
2017-06-02 11:20:24 +08:00
import "encoding/json"
json.Marshal(& data)
```
2016-12-12 08:08:37 +08:00
2017-06-02 11:20:24 +08:00
with
2016-12-12 08:08:37 +08:00
2017-06-02 11:20:54 +08:00
```go
2016-12-12 08:08:37 +08:00
import "github.com/json-iterator/go"
2017-06-02 11:20:24 +08:00
jsoniter.Marshal(& data)
2016-12-12 08:08:37 +08:00
```
2017-06-02 11:20:24 +08:00
Replace
2016-12-12 08:08:37 +08:00
2017-06-02 11:20:54 +08:00
```go
2017-06-02 11:20:24 +08:00
import "encoding/json"
json.Unmarshal(input, & data)
2016-12-12 08:08:37 +08:00
```
2017-06-02 11:20:24 +08:00
with
2016-12-15 23:49:56 +08:00
2017-06-02 11:20:54 +08:00
```go
2016-12-15 23:49:56 +08:00
import "github.com/json-iterator/go"
2017-06-02 11:20:24 +08:00
jsoniter.Unmarshal(input, & data)
2016-12-15 23:49:56 +08:00
```
2016-12-12 08:08:37 +08:00
# How to get
```
go get github.com/json-iterator/go
```
# Contribution Welcomed !
2017-02-04 14:34:00 +08:00
Report issue or pull request, or email taowen@gmail .com, or [](https://gitter.im/json-iterator/Lobby)