As I walked through the documentation, i found that json_as_binary() has a wrong description.
The description says something about a returned std::string as the real return value is void *
Oops, I noticed a few other minor problems in the docs too, nothing major. I will examine the doc more carefully and release and updated one in a few days. Sorry about that, if you see any other problems in it, please let me know.