RFoe / coasync

Asynchronous network library that supports coroutines in C++20
https://github.com/RFoe/coasync
MIT License
18 stars 3 forks source link

给serde_stream加入序列化json, xml的功能 #17

Open RFoe opened 1 week ago

RFoe commented 1 week ago

https://github.com/RFoe/coasync/blob/8bab4cc8c00e5f61db263c39ba2c229919704c68/include/coasync/net/serde_stream.hpp#L19

或许是这样

coasync::net::serde_stream s;
auto o = coasync::json::from_string(R"({"key": [1, 3, null]})");
s.serialize(o);