mirror of
https://github.com/json-iterator/go.git
synced 2025-04-20 11:28:49 +02:00
22 lines
384 B
Go
22 lines
384 B
Go
package test
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
func init() {
|
|
marshalCases = append(marshalCases,
|
|
json.RawMessage("{}"),
|
|
selectedMarshalCase{struct {
|
|
Env string `json:"env"`
|
|
Extra json.RawMessage `json:"extra,omitempty"`
|
|
}{
|
|
Env: "jfdk",
|
|
}},
|
|
)
|
|
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
|
ptr: (*json.RawMessage)(nil),
|
|
input: `[1,2,3]`,
|
|
})
|
|
}
|