Fix swipes to json
Merge pull request #42 from cmanou/master

to json