Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
a79d634c
Commit
a79d634c
authored
Aug 22, 2016
by
Niels
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrated proposals for #290
parent
6d1254ba
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
200 additions
and
431 deletions
+200
-431
doc/examples/parse__array__parser_callback_t.cpp
doc/examples/parse__array__parser_callback_t.cpp
+0
-28
doc/examples/parse__array__parser_callback_t.link
doc/examples/parse__array__parser_callback_t.link
+0
-1
doc/examples/parse__array__parser_callback_t.output
doc/examples/parse__array__parser_callback_t.output
+0
-20
src/json.hpp
src/json.hpp
+100
-191
src/json.hpp.re2c
src/json.hpp.re2c
+100
-191
No files found.
doc/examples/parse__array__parser_callback_t.cpp
deleted
100644 → 0
View file @
6d1254ba
#include <json.hpp>
using
json
=
nlohmann
::
json
;
int
main
()
{
// a JSON text
char
text
[]
=
R"(
{
"Image": {
"Width": 800,
"Height": 600,
"Title": "View from 15th Floor",
"Thumbnail": {
"Url": "http://www.example.com/image/481989943",
"Height": 125,
"Width": 100
},
"Animated" : false,
"IDs": [116, 943, 234, 38793]
}
}
)"
;
// parse and serialize JSON
json
j_complete
=
json
::
parse
(
text
);
std
::
cout
<<
std
::
setw
(
4
)
<<
j_complete
<<
"
\n\n
"
;
}
doc/examples/parse__array__parser_callback_t.link
deleted
100644 → 0
View file @
6d1254ba
<a target="_blank" href="http://melpon.org/wandbox/permlink/LvZQq5fybVH1nh9L"><b>online</b></a>
\ No newline at end of file
doc/examples/parse__array__parser_callback_t.output
deleted
100644 → 0
View file @
6d1254ba
{
"Image": {
"Animated": false,
"Height": 600,
"IDs": [
116,
943,
234,
38793
],
"Thumbnail": {
"Height": 125,
"Url": "http://www.example.com/image/481989943",
"Width": 100
},
"Title": "View from 15th Floor",
"Width": 800
}
}
src/json.hpp
View file @
a79d634c
This diff is collapsed.
Click to expand it.
src/json.hpp.re2c
View file @
a79d634c
This diff is collapsed.
Click to expand it.
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