removed pickle dependency and added a custom JSON serializer for
location dictionaries