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
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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
50 deletions
+0
-50
parse__array__parser_callback_t.cpp
doc/examples/parse__array__parser_callback_t.cpp
+0
-28
parse__array__parser_callback_t.link
doc/examples/parse__array__parser_callback_t.link
+0
-2
parse__array__parser_callback_t.output
doc/examples/parse__array__parser_callback_t.output
+0
-20
json.hpp
src/json.hpp
+0
-0
json.hpp.re2c
src/json.hpp.re2c
+0
-0
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