mirror of
https://github.com/json-iterator/go.git
synced 2025-04-23 11:37:32 +02:00
syntax highlight
This commit is contained in:
parent
2051e3b8ae
commit
5310d4aa9a
@ -8,28 +8,28 @@ jsoniter (json-iterator) is fast and flexible JSON parser available in [Java](ht
|
||||
|
||||
Replace
|
||||
|
||||
```
|
||||
```go
|
||||
import "encoding/json"
|
||||
json.Marshal(&data)
|
||||
```
|
||||
|
||||
with
|
||||
|
||||
```
|
||||
```go
|
||||
import "github.com/json-iterator/go"
|
||||
jsoniter.Marshal(&data)
|
||||
```
|
||||
|
||||
Replace
|
||||
|
||||
```
|
||||
```go
|
||||
import "encoding/json"
|
||||
json.Unmarshal(input, &data)
|
||||
```
|
||||
|
||||
with
|
||||
|
||||
```
|
||||
```go
|
||||
import "github.com/json-iterator/go"
|
||||
jsoniter.Unmarshal(input, &data)
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user