Suggestion: Support tabs for indentation when serializing to stream. #520
Labels
kind: enhancement/improvement
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
With very slight modification to json.hpp, it can support setting the fill char on the output stream to '\t', and then using this fill char as the indent char instead of space. It works well, for example:
nlohman::json jsonval(...);
std::ofstream ofs(path);
ofs << std::setfill('\t') << std::setw(1) << jsonval;
The text was updated successfully, but these errors were encountered: