Mariadb ANNOTATE_ROWS_EVENT events accompany row events and describe the query which caused the row event
Enable this with --binlog-annotate-row-events (default on from MariaDB 10.2.4).
Utility to parse the binary-encoded value of a MySQL JSON type, translating the encoded representation into
method calls on a supplied JsonFormatter implementation.