From f96d4849f60f8dd00c102ea04e4ff2be63ddd6ff Mon Sep 17 00:00:00 2001 From: SimonFJ20 Date: Wed, 20 Nov 2024 12:55:59 +0100 Subject: [PATCH] add parse_json --- runtime/json.hpp | 5 +++++ 1 file changed, 5 insertions(+) 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&