allow for customization of toplevel JSON output, too