if profile.json() returns `{}` then this will throw an KeyError Exception - is this expected?