millijson
Lightweight JSON parser for C++
Loading...
Searching...
No Matches
millijson::ParseOptions Struct Reference

Options for parse(). More...

#include <millijson.hpp>

Public Attributes

bool number_as_string = false
 
std::size_t buffer_size = sanisizer::cap<std::size_t>(65536)
 
bool parallel = false
 

Detailed Description

Options for parse().

Member Data Documentation

◆ buffer_size

std::size_t millijson::ParseOptions::buffer_size = sanisizer::cap<std::size_t>(65536)

Size of the buffer for storing bytes before parsing. Larger values typically improve speed at the cost of memory efficiency.

◆ number_as_string

bool millijson::ParseOptions::number_as_string = false

Whether to preserve the string representation for numbers. If true, all JSON numbers will be loaded as NumberAsString. Otherwise, they will be loaded as Number.

◆ parallel

bool millijson::ParseOptions::parallel = false

Whether to parse and read bytes in parallel. This can reduce runtime on multi-core machines.


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