Interface decodes the JSON value within an object or an array to an interface{}.
(value *interface{})
| 121 | |
| 122 | // Interface decodes the JSON value within an object or an array to an interface{}. |
| 123 | func (dec *Decoder) Interface(value *interface{}) error { |
| 124 | err := dec.decodeInterface(value) |
| 125 | if err != nil { |
| 126 | return err |
| 127 | } |
| 128 | dec.called |= 1 |
| 129 | return nil |
| 130 | } |