Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alchemy
Mirrors
ModernJson
Commits
c3d7fcb7
Unverified
Commit
c3d7fcb7
authored
Jun 18, 2021
by
justanotheranonymoususer
Committed by
GitHub
Jun 18, 2021
Browse files
Update README.md
parent
9710108d
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c3d7fcb7
...
...
@@ -88,7 +88,7 @@ Thanks everyone!
#include
<nlohmann/json.hpp>
// for convenience
using
nlohmann
::
json
;
using
json
=
nlohmann
::
json
;
```
to the files you want to process JSON and set the necessary switches to enable C++11 (e.g.,
`-std=c++11`
for GCC and Clang).
...
...
@@ -870,7 +870,7 @@ assert(p == p2);
To make this work with one of your types, you only need to provide two functions:
```
cpp
using
nlohmann
::
json
;
using
json
=
nlohmann
::
json
;
namespace
ns
{
void
to_json
(
json
&
j
,
const
person
&
p
)
{
...
...
Write
Preview
Supports
Markdown
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