mirror of
https://github.com/json-iterator/go.git
synced 2024-11-24 08:22:14 +02:00
18 lines
345 B
Go
18 lines
345 B
Go
package test
|
|
|
|
import "encoding/json"
|
|
|
|
func init() {
|
|
unmarshalCases = append(unmarshalCases, unmarshalCase{
|
|
ptr: (*json.Number)(nil),
|
|
input: `"500"`,
|
|
}, unmarshalCase{
|
|
ptr: (*json.Number)(nil),
|
|
input: `1`,
|
|
}, unmarshalCase{
|
|
ptr: (*json.Number)(nil),
|
|
input: `null`,
|
|
})
|
|
marshalCases = append(marshalCases, json.Number(""))
|
|
}
|