|
DAW JSON Link
|
#include "daw/json/impl/version.h"#include "daw/json/daw_json_link_types.h"#include "daw/json/daw_to_json.h"#include "daw/json/impl/daw_json_serialize_policy.h"#include "daw/json/impl/to_daw_json_string.h"#include <daw/daw_utility.h>#include <cstddef>#include <string_view>#include <type_traits>Go to the source code of this file.
Namespaces | |
| namespace | daw |
| namespace | daw::json |
| string_writer grows its string with resize_and_overwrite, leaving the new bytes uninitialized, when the standard library has it. That skips zero filling memory that is overwritten right away, but the bytes past what was written are never initialized, which resize_and_overwrite's precondition does not allow. Define DAW_JSON_NO_LESS_SAFE_STRING_WRITER to grow with resize( ) instead | |
| namespace | daw::json::anonymous_namespace{daw_json_schema.h} |
| namespace | daw::json::anonymous_namespace{daw_json_schema.h}::utils |
Functions | |
| template<typename WriteableType > | |
| static constexpr WriteableType | daw::json::anonymous_namespace{daw_json_schema.h}::utils::output_kv (WriteableType it, std::string_view key, std::string_view value) |
| template<typename T , typename WritableType , auto... PolicyFlags> | |
| constexpr WritableType | daw::json::anonymous_namespace{daw_json_schema.h}::to_json_schema (WritableType &it, std::string_view id, std::string_view title, options::output_flags_t< PolicyFlags... >=options::output_flags<>) |
| Generate a JSON Schema string based on the mappings for the type specified. | |