0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd::json: Use proper output grammar for literal generation.

This commit is contained in:
Jason Volk 2017-08-28 17:34:08 -07:00
parent 81bd73f6f0
commit 04129d7444

View file

@ -410,7 +410,7 @@ ircd::json::serialize(const index &obj,
const auto print_literal([&stop, &out](const value &value) const auto print_literal([&stop, &out](const value &value)
{ {
printer(out, stop, karma::string, string_view{value}); printer(out, stop, printer.literal, string_view{value});
}); });
const auto print_object([&stop, &out](const value &value) const auto print_object([&stop, &out](const value &value)
@ -554,7 +554,7 @@ ircd::json::operator<<(std::ostream &s, const index &obj)
const auto stream_literal([&osi](const value &value) const auto stream_literal([&osi](const value &value)
{ {
karma::generate(osi, karma::string, string_view{value}); karma::generate(osi, ostreamer.literal, string_view{value});
}); });
const auto stream_object([&osi, &s](const value &value) const auto stream_object([&osi, &s](const value &value)