| 869 | } |
| 870 | |
| 871 | String Json::printString() const { |
| 872 | if (type() == Type::String) |
| 873 | return *m_data.get<StringConstPtr>(); |
| 874 | return repr(); |
| 875 | } |
| 876 | |
| 877 | std::ostream& operator<<(std::ostream& os, Json const& v) { |
| 878 | outputUtf8Json(v, std::ostream_iterator<char>(os), 0, false); |