* \brief Returns a JSON representation for the content. * * Custom types should specialize the any_value_to_json template function for meaningful output. */
| 247 | * Custom types should specialize the any_value_to_json template function for meaningful output. |
| 248 | */ |
| 249 | std::string ToJSON() const |
| 250 | { |
| 251 | return Empty() ? "null" : _content->ToJSON(); |
| 252 | } |
| 253 | |
| 254 | /** |
| 255 | * \brief Returns the type information of the stored content. |