Feature: to json

Add to_json and to_h support for location