diff --git a/doc/examples/sax_parse.cpp b/doc/examples/sax_parse.cpp
index 69e8962c..82a99f7d 100644
--- a/doc/examples/sax_parse.cpp
+++ b/doc/examples/sax_parse.cpp
@@ -79,6 +79,12 @@ class sax_event_consumer : public json::json_sax_t
         return true;
     }
 
+    bool binary(binary_t& val) override
+    {
+        events.push_back("binary");
+        return true;
+    }
+
     bool parse_error(std::size_t position, const std::string& last_token, const json::exception& ex) override
     {
         events.push_back("error: " + std::string(ex.what()));