mirror of
https://github.com/nlohmann/json.git
synced 2026-10-29 20:15:20 +00:00
deploy: 94fe31eb9b
This commit is contained in:
@@ -36,7 +36,7 @@ deserializes. See [Template Parameter Requirements](../../features/types/templat
|
||||
#include <iostream>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
using json = nlohmann::json;
|
||||
using nlohmann::json;
|
||||
|
||||
namespace ns
|
||||
{
|
||||
@@ -84,7 +84,7 @@ deserializes. See [Template Parameter Requirements](../../features/types/templat
|
||||
|
||||
auto p = j.get<ns::person>();
|
||||
|
||||
std::cout << p.name << " (" << p.age << ") lives in " << p.address << std::endl;
|
||||
std::cout << p.name << " (" << p.age << ") lives in " << p.address << '\n';
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user