mirror of
https://gitee.com/johng/gf
synced 2026-07-08 22:40:30 +08:00
14 lines
222 B
Go
14 lines
222 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/gogf/gf/encoding/gjson"
|
|
)
|
|
|
|
func main() {
|
|
body := "{\"id\": 413231383385427875}"
|
|
if dat, err := gjson.DecodeToJson(body); err == nil {
|
|
fmt.Println(dat.MustToJsonString())
|
|
}
|
|
}
|