From 9710108d6aa8ec3b17564b1bc62ea904e570b3d9 Mon Sep 17 00:00:00 2001 From: justanotheranonymoususer Date: Thu, 17 Jun 2021 21:39:29 +0300 Subject: [PATCH 1/3] Consistency with `using` in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 127b8d2054..1c11617b26 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Thanks everyone! #include // for convenience -using json = nlohmann::json; +using 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). From c3d7fcb76ced6746e67fa9a63bb995468b090134 Mon Sep 17 00:00:00 2001 From: justanotheranonymoususer Date: Fri, 18 Jun 2021 11:04:53 +0300 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1c11617b26..96e7a22e11 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Thanks everyone! #include // 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) { From e970f310668bd19d74c3596b8eb3cfa2daaa90b2 Mon Sep 17 00:00:00 2001 From: justanotheranonymoususer Date: Fri, 18 Jun 2021 12:44:27 +0300 Subject: [PATCH 3/3] Update arbitrary_types.md --- doc/mkdocs/docs/features/arbitrary_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/mkdocs/docs/features/arbitrary_types.md b/doc/mkdocs/docs/features/arbitrary_types.md index 23913bba22..4234191309 100644 --- a/doc/mkdocs/docs/features/arbitrary_types.md +++ b/doc/mkdocs/docs/features/arbitrary_types.md @@ -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) {