Gpx2json is a project mainly written in Python, it's free.
a gpx2json converter for pocket queries from geocaching.com
a converter to convert (zipped) gpx files from geocaching.com to json files.