2022-06-06 11:31:46 -07:00

22 lines
447 B
Bash

$ go run json.go
true
1
2.34
"gopher"
["apple","peach","pear"]
{"apple":5,"lettuce":7}
{"Page":1,"Fruits":["apple","peach","pear"]}
{"page":1,"fruits":["apple","peach","pear"]}
map[num:6.13 strs:[a b]]
6.13
a
{1 [apple peach]}
apple
{"apple":5,"lettuce":7}
# We've covered the basic of JSON in Go here, but check
# out the [JSON and Go](https://go.dev/blog/json)
# blog post and [JSON package docs](https://pkg.go.dev/encoding/json)
# for more.