Fix whitespace
This commit is contained in:
parent
8a4af820c7
commit
8ba7f69ab4
1 changed files with 22 additions and 22 deletions
44
src/json.hpp
44
src/json.hpp
|
@ -3035,19 +3035,19 @@ class parser
|
||||||
case token_type::begin_object:
|
case token_type::begin_object:
|
||||||
{
|
{
|
||||||
if (keep)
|
if (keep)
|
||||||
{
|
{
|
||||||
if (callback)
|
if (callback)
|
||||||
{
|
{
|
||||||
keep = callback(depth++, parse_event_t::object_start, result);
|
keep = callback(depth++, parse_event_t::object_start, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (not callback or keep)
|
if (not callback or keep)
|
||||||
{
|
{
|
||||||
// explicitly set result to object to cope with {}
|
// explicitly set result to object to cope with {}
|
||||||
result.m_type = value_t::object;
|
result.m_type = value_t::object;
|
||||||
result.m_value = value_t::object;
|
result.m_value = value_t::object;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// read next token
|
// read next token
|
||||||
get_token();
|
get_token();
|
||||||
|
@ -3140,17 +3140,17 @@ class parser
|
||||||
{
|
{
|
||||||
if (keep)
|
if (keep)
|
||||||
{
|
{
|
||||||
if (callback)
|
if (callback)
|
||||||
{
|
{
|
||||||
keep = callback(depth++, parse_event_t::array_start, result);
|
keep = callback(depth++, parse_event_t::array_start, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (not callback or keep)
|
if (not callback or keep)
|
||||||
{
|
{
|
||||||
// explicitly set result to object to cope with []
|
// explicitly set result to array to cope with []
|
||||||
result.m_type = value_t::array;
|
result.m_type = value_t::array;
|
||||||
result.m_value = value_t::array;
|
result.m_value = value_t::array;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// read next token
|
// read next token
|
||||||
|
|
Loading…
Reference in a new issue