![]() |
TerraForge3D
2.3.1
3D Terrain And Landscape Generator
|
|
inlinestatic |
deserialize from a compatible input
InputType | A compatible input, for instance
|
[in] | i | input to read from |
[in] | cb | a parser callback function of type parser_callback_t which is used to control the deserialization by filtering unwanted values (optional) |
[in] | allow_exceptions | whether to throw exceptions in case of a parse error (optional, true by default) |
[in] | ignore_comments | whether comments should be ignored and treated like whitespace (true) or yield a parse error (true); (optional, false by default) |
false
, the return value will be value_t::discarded.parse_error.101 | if a parse error occurs; example: ""unexpected end of input; expected string literal"" |
parse_error.102 | if to_unicode fails or surrogate error |
parse_error.103 | if to_unicode fails |
@complexity Linear in the length of the input. The parser is a predictive LL(1) parser. The complexity can be higher if the parser callback function cb or reading from the input i has a super-linear complexity.
@liveexample{The example below demonstrates the parse()
function reading from an array.,parse__array__parser_callback_t}
@liveexample{The example below demonstrates the parse()
function with and without callback function.,parse__string__parser_callback_t}
@liveexample{The example below demonstrates the parse()
function with and without callback function.,parse__istream__parser_callback_t}
@liveexample{The example below demonstrates the parse()
function reading from a contiguous container.,parse__contiguouscontainer__parser_callback_t}
Definition at line 24605 of file json.hpp.