fix issue in example of package gjson

This commit is contained in:
John
2021-08-20 23:15:48 +08:00
parent c5345239fc
commit ef36cf8446
3 changed files with 6 additions and 12 deletions

View File

@ -19,6 +19,7 @@ func Example_conversionNormalFormats() {
"array" : ["John", "Ming"]
}
}`
if j, err := gjson.DecodeToJson(data); err != nil {
panic(err)
} else {
@ -48,8 +49,8 @@ func Example_conversionNormalFormats() {
// YAML:
// users:
// array:
// - John
// - Ming
// - John
// - Ming
// count: 1
//
// ======================