correct the details route to map json objects to strings