Update 07.2.md
Amended unintentional typo
This commit is contained in:
@@ -57,7 +57,7 @@ You may have noticed that all fields that are going to be assigned should be exp
|
|||||||
|
|
||||||
When we know what kind of JSON to expect in advance, we can parse it to a specific struct. But what if we don't know?
|
When we know what kind of JSON to expect in advance, we can parse it to a specific struct. But what if we don't know?
|
||||||
|
|
||||||
We know that an interface{} can be anything in Go, so it is the best container to save our JSON of unknown format. The JSON package uses `map[string]interface{}` and `[]interface{}` to save all kinds of JSON objects and arrays. Here is a list of JSON mapping relations:typographical errors and improved readability
|
We know that an interface{} can be anything in Go, so it is the best container to save our JSON of unknown format. The JSON package uses `map[string]interface{}` and `[]interface{}` to save all kinds of JSON objects and arrays. Here is a list of JSON mapping relations:
|
||||||
|
|
||||||
- `bool` represents `JSON booleans`,
|
- `bool` represents `JSON booleans`,
|
||||||
- `float64` represents `JSON numbers`,
|
- `float64` represents `JSON numbers`,
|
||||||
|
|||||||
Reference in New Issue
Block a user