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
99261bf3
Commit
99261bf3
authored
Oct 03, 2015
by
Niels
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #129 from dariomt/master
fixed typos in comments for examples
parents
0a813539
26074581
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
doc/examples/get__PointerType.cpp
doc/examples/get__PointerType.cpp
+1
-1
doc/examples/get_ptr.cpp
doc/examples/get_ptr.cpp
+1
-1
doc/examples/object.cpp
doc/examples/object.cpp
+2
-2
No files found.
doc/examples/get__PointerType.cpp
View file @
99261bf3
...
...
@@ -4,7 +4,7 @@ using namespace nlohmann;
int
main
()
{
// create a JSON
boolean
// create a JSON
number
json
value
=
17
;
// explicitly getting pointers
...
...
doc/examples/get_ptr.cpp
View file @
99261bf3
...
...
@@ -4,7 +4,7 @@ using namespace nlohmann;
int
main
()
{
// create a JSON
boolean
// create a JSON
number
json
value
=
17
;
// explicitly getting pointers
...
...
doc/examples/object.cpp
View file @
99261bf3
...
...
@@ -4,13 +4,13 @@ using namespace nlohmann;
int
main
()
{
// create JSON
array
s
// create JSON
object
s
json
j_no_init_list
=
json
::
object
();
json
j_empty_init_list
=
json
::
object
({});
json
j_list_of_pairs
=
json
::
object
({
{
"one"
,
1
},
{
"two"
,
2
}
});
//json j_invalid_list = json::object({ "one", 1 }); // would throw
// serialize the JSON
array
s
// serialize the JSON
object
s
std
::
cout
<<
j_no_init_list
<<
'\n'
;
std
::
cout
<<
j_empty_init_list
<<
'\n'
;
std
::
cout
<<
j_list_of_pairs
<<
'\n'
;
...
...
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