added a way to get a geojson-like dictionary for any object