|
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"Namespaces | |
| namespace | a11 |
Functions | |
| absl::StatusOr< Json > | a11::ParseJson (std::string_view encoded, std::string_view what) |
| Parses JSON text, or explains why it is not JSON. | |
| bool | a11::IsValidUtf8 (std::string_view text) |
Whether text is valid UTF-8. | |
| const Json * | a11::FindUnencodableString (const Json &value) |
| absl::StatusOr< std::string > | a11::DumpJson (const Json &value, std::string_view what) |
| std::string | a11::DumpJsonLossy (const Json &value) |
| absl::StatusOr< std::string > | a11::PackMsgpack (const Json &value, std::string_view what) |
| absl::StatusOr< Json > | a11::UnpackMsgpack (std::string_view encoded, std::string_view what) |
| Decodes MessagePack bytes, or explains why they are not. | |