mirror of
https://github.com/nlohmann/json.git
synced 2024-12-11 19:29:03 +08:00
6b6e554067
std::setw needs the iomanip header (at least with GCC).
11 lines
176 B
C++
11 lines
176 B
C++
#include <json.hpp>
|
|
#include <iomanip> // for std::setw
|
|
|
|
using json = nlohmann::json;
|
|
|
|
int main()
|
|
{
|
|
// call meta()
|
|
std::cout << std::setw(4) << json::meta() << '\n';
|
|
}
|