basic json callbacks for location and category