libhv icon indicating copy to clipboard operation
libhv copied to clipboard

json处理怎么换一个库来处理。

Open mrclassfree opened this issue 1 year ago • 1 comments

nlohmann::json 这个库对中文支持不好,接口使用方式也不好用,还不如cpprest的JSON类好用,我想在源代码中替换另外一个JSON类,哪位大神知道该怎么操作?

mrclassfree avatar Sep 23 '24 01:09 mrclassfree

通过req->body或者resp->body拿到原始的字符串数据,使用自己喜欢的json库解析生成即可

ithewei avatar Sep 23 '24 05:09 ithewei

可以试试 xpack::json

image

newpc6 avatar Nov 15 '24 10:11 newpc6