Flush the value if it is the top level one.
| 456 | |
| 457 | // Flush the value if it is the top level one. |
| 458 | bool EndValue(bool ret) { |
| 459 | if (RAPIDJSON_UNLIKELY(level_stack_.Empty())) // end of json text |
| 460 | os_->Flush(); |
| 461 | return ret; |
| 462 | } |
| 463 | |
| 464 | OutputStream* os_; |
| 465 | internal::Stack<StackAllocator> level_stack_; |