|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
Base interface for objects that support JSON serialization. More...
#include <tec_serialize.hpp>
Public Member Functions | |
| virtual std::string | to_json () const =0 |
| Convert this object to a JSON string representation. | |
Base interface for objects that support JSON serialization.
This is a pure abstract interface. Derived classes must implement all pure virtual methods to be instantiable.
|
pure virtual |
Convert this object to a JSON string representation.
The returned string should be valid JSON. It is typically used for debugging, logging, or saving configuration/state in text form.