add parse_json

This commit is contained in:
SimonFJ20 2024-11-20 12:55:59 +01:00
parent 2dbdd5c772
commit f96d4849f6

View File

@ -319,6 +319,11 @@ private:
Res<Tok> cur;
};
inline auto parse_json(std::string_view value) -> Res<std::unique_ptr<Value>>
{
return Parser(value).parse_val();
}
class Writer {
public:
inline auto operator<<(auto value) -> Writer&