Hi,
Are there any samples of using boost.json to deserialize boost.beast responses?
Not in the documentation of the two libraries as they are treated as separate self-contained concerns.
However it’s quite trivial.
The data() member of a flat_buffer contains a pointer and a size. Cast the pointer to const char * and use it and the size to construct a json::string_view.
From there you can call json::parse to get your json::value.
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users