MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
JsonUtils.hpp File Reference
#include <cmath>
#include <concepts>
#include <cstddef>
#include <cstdint>
#include <algorithm>
#include <limits>
#include <stdexcept>
#include <string>
#include <string_view>
#include <fmt/format.h>
#include <picojson/wrapper.h>
#include "StringUtils.hpp"
Include dependency graph for JsonUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mxl::lib::detail::LimitedJsonParseContext
struct  mxl::lib::JsonLimits
 Limits applied by parseJson(). More...

Namespaces

namespace  mxl
namespace  mxl::lib
namespace  mxl::lib::detail

Functions

template<std::integral T>
T mxl::lib::jsonStringToInteger (picojson::value const &value, std::string_view name)
template<std::integral T>
T mxl::lib::jsonToInteger (picojson::value const &value, std::string_view name)
std::string mxl::lib::parseJson (picojson::value &out, std::string_view text, JsonLimits const &limits={})