Better json printing for door periodig open/close