Unmarshal unmarshals a JSON object from r into m.
(r io.Reader, m proto.Message)
| 66 | |
| 67 | // Unmarshal unmarshals a JSON object from r into m. |
| 68 | func (u *Unmarshaler) Unmarshal(r io.Reader, m proto.Message) error { |
| 69 | return u.UnmarshalNext(json.NewDecoder(r), m) |
| 70 | } |
| 71 | |
| 72 | // UnmarshalNext unmarshals the next JSON object from d into m. |
| 73 | func (u *Unmarshaler) UnmarshalNext(d *json.Decoder, m proto.Message) error { |