addObjectKey adds key to object builder and transitions state to read object value.
(k string)
| 230 | // addObjectKey adds key to object builder and transitions state to read object |
| 231 | // value. |
| 232 | func (p *fastJSONParser) addObjectKey(k string) { |
| 233 | p.obj[len(p.obj)-1].Add(k, nil) |
| 234 | p.state = (*fastJSONParser).parseObjectValue |
| 235 | } |
| 236 | |
| 237 | // setObjectValue sets the value for the previously added object key, |
| 238 | // and transitions state to read the next object key. |