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
|
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)
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user