With Postgresql v10 and WAL2JSON... Is it possible to include the database name / datname in the json?
I don't think this is possible because AFAIK database name or related oid is not stored in JSON columns. But it is always possible to retrieve current database name in a SQL session with:

select current_database();