mirror of
https://github.com/nlohmann/json.git
synced 2026-02-28 22:36:25 +00:00
Merge pull request #2826 from justanotheranonymoususer/patch-1
Consistency with `using` in README.md
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -54,7 +54,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) {
|
||||
|
||||
Reference in New Issue
Block a user