template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>>
template<class IteratorType , class SAX >
static bool nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::sax_parse |
( |
IteratorType |
first, |
|
|
IteratorType |
last, |
|
|
SAX * |
sax, |
|
|
input_format_t |
format = input_format_t::json , |
|
|
const bool |
strict = true , |
|
|
const bool |
ignore_comments = false |
|
) |
| |
|
inlinestatic |
Definition at line 24773 of file json.hpp.
24777 {
24778 auto ia = detail::input_adapter(std::move(first), std::move(last));
24779 return format == input_format_t::json
24780 ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
24781 : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
24782 }