json.extract! point, :id, :location, :created_at, :updated_at json.url point_url(point, format: :json)