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<typename SAX >
static bool nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::sax_parse |
( |
detail::span_input_adapter && |
i, |
|
|
SAX * |
sax, |
|
|
input_format_t |
format = input_format_t::json , |
|
|
const bool |
strict = true , |
|
|
const bool |
ignore_comments = false |
|
) |
| |
|
inlinestatic |
Definition at line 24787 of file json.hpp.
24791 {
24792 auto ia = i.get();
24793 return format == input_format_t::json
24794
24795 ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict)
24796
24797 : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict);
24798 }