Request help about the configuration of “auth.generic_oauth” OIDC

I took a lot of time to config the OIDC “auth.generic_oauth” in grafana.ini.
Always get below error:
json: cannot unmarshal array into Go struct field UserInfoJson.attributes of type map[string]string"

I read some github issue about this topic, it ask to add “role_attribute_path” or “email_attribute_path” with JMESPath, never succeed after many many times try, I would be crazy now /(ㄒoㄒ)/~~。 Please help me, give my big appreciate in advance

the rawJson:
raw_json=“{"id":"peng.zhang","attributes":[{"workNo":"66005"},{"account_id":""},{"user_name":"peng.zhang"},{"email":"peng.zhang@company.com"}]}”

You need to configure your IDP to return flat structure in attributes key. Array is not supported there.