.json GET request of marker instance responds with custom geojson. also cleaned up duplication in the controller logic