Fix swipes to_json()