| 820 | } |
| 821 | |
| 822 | void json::build_json(string& out, bool add_space /* = false */) const |
| 823 | { |
| 824 | if (add_space) { |
| 825 | const_cast<json*>(this)->json_->flag |= ACL_JSON_FLAG_ADD_SPACE; |
| 826 | } else { |
| 827 | const_cast<json*>(this)->json_->flag &= ~ACL_JSON_FLAG_ADD_SPACE; |
| 828 | } |
| 829 | |
| 830 | ACL_VSTRING* buf = out.vstring(); |
| 831 | (void) acl_json_build(json_, buf); |
| 832 | } |
| 833 | |
| 834 | void json::reset() |
| 835 | { |