diff --git a/runtime/json.hpp b/runtime/json.hpp index 38b73f2..bb34d0e 100644 --- a/runtime/json.hpp +++ b/runtime/json.hpp @@ -319,6 +319,11 @@ private: Res cur; }; +inline auto parse_json(std::string_view value) -> Res> +{ + return Parser(value).parse_val(); +} + class Writer { public: inline auto operator<<(auto value) -> Writer&