MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
mxl::lib::JsonLimits Struct Reference

Limits applied by parseJson(). More...

#include <JsonUtils.hpp>

Public Attributes

std::size_t maxContainerSize = 1024U
 Largest number of items in one array or members in one object.
std::size_t maxDepth = 32U
 Largest number of nested arrays and objects. picojson parses recursively, so this also bounds stack use.
std::size_t maxInputSize = std::size_t{64} * 1024U
 Largest accepted input in bytes. This also bounds the length of any string in the document.

Detailed Description

Limits applied by parseJson().

Definition at line 22 of file JsonUtils.hpp.

Member Data Documentation

◆ maxContainerSize

std::size_t mxl::lib::JsonLimits::maxContainerSize = 1024U

Largest number of items in one array or members in one object.

Definition at line 29 of file JsonUtils.hpp.

◆ maxDepth

std::size_t mxl::lib::JsonLimits::maxDepth = 32U

Largest number of nested arrays and objects. picojson parses recursively, so this also bounds stack use.

Definition at line 27 of file JsonUtils.hpp.

◆ maxInputSize

std::size_t mxl::lib::JsonLimits::maxInputSize = std::size_t{64} * 1024U

Largest accepted input in bytes. This also bounds the length of any string in the document.

Definition at line 25 of file JsonUtils.hpp.

25{64} * 1024U;

The documentation for this struct was generated from the following file: