| 353 | } |
| 354 | |
| 355 | uint32_t read(TJSONProtocol::LookaheadReader& reader) override { |
| 356 | if (first_) { |
| 357 | first_ = false; |
| 358 | colon_ = true; |
| 359 | return 0; |
| 360 | } else { |
| 361 | uint8_t ch = (colon_ ? kJSONPairSeparator : kJSONElemSeparator); |
| 362 | colon_ = !colon_; |
| 363 | return readSyntaxChar(reader, ch); |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | // Numbers must be turned into strings if they are the key part of a pair |
| 368 | bool escapeNum() override { return colon_; } |
nothing calls this directly
no test coverage detected