Force deepstream 5.0 to send json message also when no objects detected

is there a simple way to force deepstream-app to send json message (with the frameid) but with empty objects?
Thanks

You can modify generate_schema_message in sources/libs/nvmsgconv/nvmsgconv.cpp to customize the payload, which will be sent through broker element.

thanks but generate_schema_message nor nvds_msg2p_generate before it, are not called when no objects detected in a frame (yolo3tiny)

basically we check metadata type if match NVDS_EVENT_MSG_META, and within the condition also to check the event message componentId if match componentId you set in the config, you can go through the function, and look to see how it can meet your needs.
sources/gst-plugins/gst-nvmsgconv/gstnvmsgconv.c
gst_nvmsgconv_transform_ip