As it currently stands AWS Cognito doesn’t support nested claims in JWTs. The ability to refer to non nested values for authorization would be helpful. My apologies if this is already available and I have just overlooked it.
Edit: Alternatively if values could be parsed from a stringified map that would work.