Serialize dynamic to json-string, with options.
Declared in <folly/json/json.h>
std::string
serialize(
dynamic const& value,
serialization_opts const& opts);
Main JSON serialization routine taking folly::dynamic parameters. For the most common use cases there are simpler functions in the main folly namespace.
The serialized JSON string.
| Name | Description |
|---|---|
| value | The dynamic value to serialize. |
| opts | The serialization options to apply. |