[enh] Add support for a generic JSON format for events