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:
parent
81bd73f6f0
commit
04129d7444
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue