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
52f5f3d2
Unverified
Commit
52f5f3d2
authored
May 12, 2020
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
fix example
parent
e9a845f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
sax_parse.cpp
doc/examples/sax_parse.cpp
+6
-0
No files found.
doc/examples/sax_parse.cpp
View file @
52f5f3d2
...
...
@@ -79,6 +79,12 @@ class sax_event_consumer : public json::json_sax_t
return
true
;
}
bool
binary
(
binary_t
&
val
)
override
{
events
.
push_back
(
"binary"
);
return
true
;
}
bool
parse_error
(
std
::
size_t
position
,
const
std
::
string
&
last_token
,
const
json
::
exception
&
ex
)
override
{
events
.
push_back
(
"error: "
+
std
::
string
(
ex
.
what
()));
...
...
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