nlohmann json, menulis ke file json

std::ofstream o("test.json");
o << std::setw(4) << j << std::endl;
Maou Shimazu