Moved to_json logic into SensedEvent