You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-27 23:18:42 +02:00
syntax highlight
This commit is contained in:
@ -8,28 +8,28 @@ jsoniter (json-iterator) is fast and flexible JSON parser available in [Java](ht
|
|||||||
|
|
||||||
Replace
|
Replace
|
||||||
|
|
||||||
```
|
```go
|
||||||
import "encoding/json"
|
import "encoding/json"
|
||||||
json.Marshal(&data)
|
json.Marshal(&data)
|
||||||
```
|
```
|
||||||
|
|
||||||
with
|
with
|
||||||
|
|
||||||
```
|
```go
|
||||||
import "github.com/json-iterator/go"
|
import "github.com/json-iterator/go"
|
||||||
jsoniter.Marshal(&data)
|
jsoniter.Marshal(&data)
|
||||||
```
|
```
|
||||||
|
|
||||||
Replace
|
Replace
|
||||||
|
|
||||||
```
|
```go
|
||||||
import "encoding/json"
|
import "encoding/json"
|
||||||
json.Unmarshal(input, &data)
|
json.Unmarshal(input, &data)
|
||||||
```
|
```
|
||||||
|
|
||||||
with
|
with
|
||||||
|
|
||||||
```
|
```go
|
||||||
import "github.com/json-iterator/go"
|
import "github.com/json-iterator/go"
|
||||||
jsoniter.Unmarshal(input, &data)
|
jsoniter.Unmarshal(input, &data)
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user