UnitCharacteristic json serialization