mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 22:46:30 +00:00
add parse_json
This commit is contained in:
parent
2dbdd5c772
commit
f96d4849f6
@ -319,6 +319,11 @@ private:
|
|||||||
Res<Tok> cur;
|
Res<Tok> cur;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline auto parse_json(std::string_view value) -> Res<std::unique_ptr<Value>>
|
||||||
|
{
|
||||||
|
return Parser(value).parse_val();
|
||||||
|
}
|
||||||
|
|
||||||
class Writer {
|
class Writer {
|
||||||
public:
|
public:
|
||||||
inline auto operator<<(auto value) -> Writer&
|
inline auto operator<<(auto value) -> Writer&
|
||||||
|
Loading…
Reference in New Issue
Block a user