xrpld
Loading...
Searching...
No Matches
STParsedJSON.h
1#pragma once
2
3#include <xrpl/protocol/STArray.h>
4
5#include <optional>
6
7namespace xrpl {
8
10inline constexpr std::size_t kMaxParsedJsonDepth = 64;
11
14inline constexpr std::size_t kMaxParsedJsonArraySize = 512;
15
43
44} // namespace xrpl
Represents a JSON value.
Definition json_value.h:130
std::optional< STObject > object
The STObject if the parse was successful.
json::Value error
On failure, an appropriate set of error values.
STParsedJSONObject(std::string const &name, json::Value const &json)
Parses and creates an STParsedJSON object.
STParsedJSONObject(STParsedJSONObject const &)=delete
STParsedJSONObject & operator=(STParsedJSONObject const &)=delete
JSON (JavaScript Object Notation).
Definition json_errors.h:5
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
constexpr std::size_t kMaxParsedJsonDepth
Maximum JSON object nesting depth permitted during parsing.
constexpr std::size_t kMaxParsedJsonArraySize
Maximum number of elements permitted in any JSON array field during parsing.