mirror of
https://github.com/json-iterator/go.git
synced 2025-04-01 21:24:21 +02:00
example unmarshal
This commit is contained in:
parent
3cf822853f
commit
2608d40f2a
@ -27,7 +27,7 @@ func ExampleMarshal() {
|
|||||||
// {"ID":1,"Name":"Reds","Colors":["Crimson","Red","Ruby","Maroon"]}
|
// {"ID":1,"Name":"Reds","Colors":["Crimson","Red","Ruby","Maroon"]}
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleUnMarshal() {
|
func ExampleUnmarshal() {
|
||||||
var jsonBlob = []byte(`[
|
var jsonBlob = []byte(`[
|
||||||
{"Name": "Platypus", "Order": "Monotremata"},
|
{"Name": "Platypus", "Order": "Monotremata"},
|
||||||
{"Name": "Quoll", "Order": "Dasyuromorphia"}
|
{"Name": "Quoll", "Order": "Dasyuromorphia"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user