Lines Matching refs:json
5 package json
22 Z int `json:"-"`
26 Alphabet string `json:"alpha"`
116 *Embed0b `json:"e,omitempty"` // treated as named
117 Embed0c `json:"-"` // ignored
124 Level1a int // overridden by Embed0a's Level1a with json tag
128 Level1e int `json:"x"` // annihilated by Embed0a.Level1e
132 Level1a int `json:"Level1a,omitempty"`
133 Level1b int `json:"LEVEL1B,omitempty"`
134 Level1c int `json:"-"`
136 Level1f int `json:"x"` // annihilated by Embed0's Level1e
152 Loop1 int `json:",omitempty"`
153 Loop2 int `json:",omitempty"`
210 First int `json:"HELLO"`
211 Second int `json:"Hello"`
690 Message string `json:"result,string"`
698 {`{"result":"x"}`, `json: invalid use of ,string struct tag, trying to unmarshal "x" into string`},
699 {`{"result":"foo"}`, `json: invalid use of ,string struct tag, trying to unmarshal "foo" into string`},
700 {`{"result":"123"}`, `json: invalid use of ,string struct tag, trying to unmarshal "123" into string`},
701 {`{"result":123}`, `json: invalid use of ,string struct tag, trying to unmarshal unquoted value into string`},
741 Foo string `json:"bar"`
742 Foo2 string `json:"bar2,dummyopt"`
744 IntStr int64 `json:",string"`
1069 Number1 int `json:",string"`
1070 Number2 int `json:",string"`
1088 A int `json:",string"`
1089 B int `json:",string"`
1090 C *int `json:",string"`
1120 json string
1141 blob := `{"X":` + tt.json + `}`
1152 // JSON null values should be ignored for primitives and string values instead of resulting in an error.
1291 m map[string]interface{} `json:"-"`
1292 m2 map[string]interface{} `json:"abcd"`
1309 // Time3339 is a time.Time which encodes to and from JSON
1340 json := `[{}]`
1343 err := Unmarshal([]byte(json), &dest)
1388 {nil, "json: Unmarshal(nil)"},
1389 {struct{}{}, "json: Unmarshal(non-pointer struct {})"},
1390 {(*int)(nil), "json: Unmarshal(nil *int)"},
1411 {nil, "json: Unmarshal(nil)"},
1412 {struct{}{}, "json: Unmarshal(non-pointer struct {})"},
1413 {(*int)(nil), "json: Unmarshal(nil *int)"},
1414 {new(net.IP), "json: cannot unmarshal string into Go value of type *net.IP"},
1436 T time.Time `json:",string"`
1437 M map[string]string `json:",string"`
1438 S []string `json:",string"`
1439 A [1]string `json:",string"`
1440 I interface{} `json:",string"`
1441 P *int `json:",string"`