setObjectValue sets the value for the previously added object key, and transitions state to read the next object key.
(v JSON)
| 237 | // setObjectValue sets the value for the previously added object key, |
| 238 | // and transitions state to read the next object key. |
| 239 | func (p *fastJSONParser) setObjectValue(v JSON) { |
| 240 | pairs := p.obj[len(p.obj)-1].pairs |
| 241 | pairs[len(pairs)-1].v = v |
| 242 | p.state = (*fastJSONParser).parseObjectKey |
| 243 | } |
| 244 | |
| 245 | // buildObject builds top JSON object. |
| 246 | func (p *fastJSONParser) buildObject() (JSON, error) { |
no outgoing calls
no test coverage detected