# Golang JSON tourial (是要開幾個) [Documentation of Go package: encoding/json](https://pkg.go.dev/encoding/json) ### function Marshal ```go func Marshal(v any) ([]byte, error) ``` It returns the JSON encoding of v. #### Example ```go ㄍ response, _ := json.Marshal(payload) // return []bytes and error ```