Use the library's operator

```cpp
std::ostream &boost::json::operator<<(std::ostream &os, const boost::json::value &jv)
```
for output instead of jv.getXYZ() with std::ostream's operator <<
This commit is contained in:
Oliver Ofenloch 2022-12-22 11:14:49 +01:00 committed by Dmitry Arkhipov
parent ee01580cfd
commit 740dbaa7a6

View File

@ -104,15 +104,9 @@ pretty_print( std::ostream& os, json::value const& jv, std::string* indent = nul
} }
case json::kind::uint64: case json::kind::uint64:
os << jv.get_uint64();
break;
case json::kind::int64: case json::kind::int64:
os << jv.get_int64();
break;
case json::kind::double_: case json::kind::double_:
os << jv.get_double(); os << jv;
break; break;
case json::kind::bool_: case json::kind::bool_: