Fix swipes to json