If a register has a json_key field then its key and value should be published to its pub_topic MQTT topic as JSON rather than the raw value. Multiple registers can share the same pub_topic, and this topic will be published at most once per scan populated with all relevant key/value pairs for those registers.
It is not allowed for more than one register to share a pub_topic unless they all have a json_key field and that value is not duplicated amongst registers that share a pub_topic.
If a register has a json_key field then its key and value should be published to its pub_topic MQTT topic as JSON rather than the raw value. Multiple registers can share the same pub_topic, and this topic will be published at most once per scan populated with all relevant key/value pairs for those registers.
It is not allowed for more than one register to share a pub_topic unless they all have a json_key field and that value is not duplicated amongst registers that share a pub_topic.