|
pjson 1.0.0
A small, owning JSON value for C++11
|
Bounds how much work a parse may do. Parsing always enforces RFC 8259 conformance and rejects: More...
#include <pjson.h>
Public Types | |
| enum | DuplicateKeyPolicy { RejectDuplicateKeys , KeepFirstDuplicate , KeepLastDuplicate } |
| Selects one of the public JSON policies. More... | |
Public Member Functions | |
| ParseOptions () | |
Public API member ParseOptions; see the API overview for its contract. | |
Public Attributes | |
| int | maxDepth |
| nesting limit; values <= 0 enforce a one-level limit | |
| size_t | maxNodes |
| max JSON values created (0 = unlimited) | |
| size_t | maxInputBytes |
| max input length in bytes (0 = unlimited) | |
| DuplicateKeyPolicy | duplicateKeys |
Public API member duplicateKeys; see the API overview for its contract. / Selects duplicate rejection, depth 512, one million nodes, and a / 64 MiB input limit. | |
Bounds how much work a parse may do. Parsing always enforces RFC 8259 conformance and rejects:
| ByteDance::pjson::ParseOptions::ParseOptions | ( | ) |
Public API member ParseOptions; see the API overview for its contract.
| DuplicateKeyPolicy ByteDance::pjson::ParseOptions::duplicateKeys |
| int ByteDance::pjson::ParseOptions::maxDepth |
| size_t ByteDance::pjson::ParseOptions::maxInputBytes |
| size_t ByteDance::pjson::ParseOptions::maxNodes |