Re: How to handle a dictionary value that is a list

2020-10-02 Thread Python
On Fri, Oct 02, 2020 at 09:25:58PM +0100, Shaozhong SHI wrote: > Hi, All, > > I was trying to handle the value of "personRoles" in a part of json > dictionary. > > Can anyone tell me various ways to handle this? I'm not sure if I understand what you're asking, but if I do, then... you handle it

How to handle a dictionary value that is a list

2020-10-02 Thread Shaozhong SHI
Hi, All, I was trying to handle the value of "personRoles" in a part of json dictionary. Can anyone tell me various ways to handle this? Regards, Shao "regulatedActivities": [ { "name": "Accommodation for persons who require nursing or personal care", "code": "RA2", "con