|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
#include "a11/json_codec.h"#include <bit>#include <cstddef>#include <cstdint>#include <exception>#include <limits>#include <string>#include <string_view>#include <vector>#include <absl/status/status.h>#include <absl/status/status_macros.h>#include <absl/status/statusor.h>#include <absl/strings/str_cat.h>#include <nlohmann/json.hpp>#include "a11/utf8.h"Go to the source code of this file.
Namespaces | |
| namespace | a11 |
Functions | |
| absl::StatusOr< Json > | a11::ParseJson (std::string_view encoded, std::string_view what) |
| Parses JSON text, returning a status for invalid input. | |
| absl::StatusOr< nlohmann::ordered_json > | a11::ParseOrderedJson (std::string_view encoded, std::string_view what) |
| Parse host fields retaining their declared insertion order. | |
| bool | a11::IsValidUtf8 (std::string_view text) |
Whether text is valid strict UTF-8. | |
| const Json * | a11::FindUnencodableString (const Json &value) |
| absl::StatusOr< std::string > | a11::DumpJson (const Json &value, std::string_view what) |
| absl::StatusOr< std::string > | a11::DumpOrderedJson (const nlohmann::ordered_json &value, std::string_view what) |
| Serialize host fields retaining their declared insertion order. | |
| std::string | a11::DumpJsonLossy (const Json &value) |
| absl::StatusOr< std::string > | a11::PackMsgpack (const Json &value, std::string_view what) |
| absl::StatusOr< std::string > | a11::PackOrderedMsgpack (const nlohmann::ordered_json &value, std::string_view what) |
| Encode host fields retaining their declared insertion order. | |
| absl::StatusOr< Json > | a11::UnpackMsgpack (std::string_view encoded, std::string_view what) |
| Decodes MessagePack bytes, or explains why they are not. | |