[lm] Fix invalid JSON after alarm rings. Thanks Jonathan Hulsman