* Returns a JSON representation for the content. * * Custom types should specialize the any_value_to_json template function for meaningful output. * The values of increment and indent are passed around to be able to be used for nicer * formatting. The code that makes use of this is in the any_value_to_json specializations for the * various containers.
| 622 | * @param indent The current amount of indent to apply to the current line. |
| 623 | */ |
| 624 | std::string |
| 625 | ToJSON(uint8_t const increment, int32_t const indent) const |
| 626 | { |
| 627 | return Empty() ? "null" : _content->ToJSON(increment, indent); |
| 628 | } |
| 629 | std::string |
| 630 | ToJSON(bool prettyPrint = false) const |
| 631 | { |