(dec *Decoder)
| 292 | type testSliceObjects []*testObject |
| 293 | |
| 294 | func (t *testSliceObjects) UnmarshalJSONArray(dec *Decoder) error { |
| 295 | obj := &testObject{} |
| 296 | *t = append(*t, obj) |
| 297 | return dec.AddObject(obj) |
| 298 | } |
| 299 | |
| 300 | func TestSliceObjects(t *testing.T) { |
| 301 | testCases := []struct { |