Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
c7f95cc6
Commit
c7f95cc6
authored
Apr 26, 2015
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor change to the parsing of objects/arrays
parent
a3729374
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
json.hpp
src/json.hpp
+4
-4
json.hpp.re2c
src/json.hpp.re2c
+4
-4
No files found.
src/json.hpp
View file @
c7f95cc6
...
...
@@ -4716,9 +4716,9 @@ basic_json_parser_59:
get_token
();
expect
(
lexer
::
token_type
::
name_separator
);
// parse value
// parse
and add
value
get_token
();
result
[
key
]
=
parse_internal
(
);
result
.
m_value
.
object
->
emplace
(
key
,
parse_internal
()
);
}
while
(
last_token
==
lexer
::
token_type
::
value_separator
);
...
...
@@ -4753,8 +4753,8 @@ basic_json_parser_59:
get_token
();
}
// parse value
result
.
push
_back
(
parse_internal
());
// parse
and add
value
result
.
m_value
.
array
->
emplace
_back
(
parse_internal
());
}
while
(
last_token
==
lexer
::
token_type
::
value_separator
);
...
...
src/json.hpp.re2c
View file @
c7f95cc6
...
...
@@ -4022,9 +4022,9 @@ class basic_json
get_token();
expect(lexer::token_type::name_separator);
// parse value
// parse
and add
value
get_token();
result
[key] = parse_internal(
);
result
.m_value.object->emplace(key, parse_internal()
);
}
while (last_token == lexer::token_type::value_separator);
...
...
@@ -4059,8 +4059,8 @@ class basic_json
get_token();
}
// parse value
result.
push
_back(parse_internal());
// parse
and add
value
result.
m_value.array->emplace
_back(parse_internal());
}
while (last_token == lexer::token_type::value_separator);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment