Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

Namespace: CppUtils::Language::JSON

using CppUtils::Language::JSON::Object = std::map<std::string, Value, std::less<>>;
using CppUtils::Language::JSON::Array = std::vector<Value>;
const auto CppUtils::Language::JSON::nullValue;
Container::Tree::VariantNode<Type::Token, bool, float> parseTree(std::string_view src);
template <std::output_iterator< char > Iterator>
Iterator escapeString(std::string_view string, Iterator out);
std::ostream& operator<<(std::ostream& os, const Value& value);
template <class ObjectType, class Mapping>
ObjectType toStruct(const Value& jsonValue);
template <class ObjectType, class Mapping>
std::vector<ObjectType> toStructs(const Value& jsonValue, std::vector<ObjectType>&& objects={});
template <class ObjectType, class Mapping>
Value toJSON(const ObjectType& objectValue);
std::expected<Value, Error> parseJSON(std::string_view json);
template <class T, class Mapping>
std::expected<T, Error> loadFile(const std::filesystem::path& filePath);