()
| 146 | } |
| 147 | |
| 148 | func (d *Decoder) stateObjectColon() ([]byte, error) { |
| 149 | tok := d.scanner.Next() |
| 150 | if len(tok) < 1 { |
| 151 | return nil, io.ErrUnexpectedEOF |
| 152 | } |
| 153 | switch tok[0] { |
| 154 | case Colon: |
| 155 | d.state = (*Decoder).stateObjectValue |
| 156 | return d.NextToken() |
| 157 | default: |
| 158 | return tok, fmt.Errorf("stateObjectColon: expecting colon") |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | func (d *Decoder) stateObjectValue() ([]byte, error) { |
| 163 | tok := d.scanner.Next() |