You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-08-13 22:12:45 +02:00
example unmarshal
This commit is contained in:
@@ -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"}
|
||||||
|
Reference in New Issue
Block a user