How to parse a json string - from json to Dictionary(string, object)

[jsondata 1]

{
“name”:“홍길동”,
email":"gdhong@test.com”,
“age”:“27”,
“Submit”:“True”
}

image

image


[jsondata 2]

{
“id”: 1,
“name”: “Leanne Graham”,
“username”: “Bret”,
“email”: “Sincere@april.biz”,
“address”: {
“street”: “Kulas Light”,
“suite”: “Apt. 556”,
“city”: “Gwenborough”,
“zipcode”: “92998-3874”,
“geo”: {
“lat”: “-37.3159”,
“lng”: “81.1496”
}
},
“phone”: “1-770-736-8031 x56442”,
“website”: “hildegard.org”,
“company”: {
“name”: “Romaguera-Crona”,
“catchPhrase”: “Multi-layered client-server neural-net”,
“bs”: “harness real-time e-markets”
}
}

address > city : How do I put these values in a dictionary and use them?


[jsondata 3]
[
{
“id”: 1,
“name”: “Leanne Graham”,
“username”: “Bret”,
“email”: “Sincere@april.biz”,
“address”: {
“street”: “Kulas Light”,
“suite”: “Apt. 556”,
“city”: “Gwenborough”,
“zipcode”: “92998-3874”,
“geo”: {
“lat”: “-37.3159”,
“lng”: “81.1496”
}
},
“phone”: “1-770-736-8031 x56442”,
“website”: “hildegard.org”,
“company”: {
“name”: “Romaguera-Crona”,
“catchPhrase”: “Multi-layered client-server neural-net”,
“bs”: “harness real-time e-markets”
}
},
{
“id”: 2,
“name”: “Ervin Howell”,
“username”: “Antonette”,
“email”: “Shanna@melissa.tv”,
“address”: {
“street”: “Victor Plains”,
“suite”: “Suite 879”,
“city”: “Wisokyburgh”,
“zipcode”: “90566-7771”,
“geo”: {
“lat”: “-43.9509”,
“lng”: “-34.4618”
}
},
“phone”: “010-692-6593 x09125”,
“website”: “anastasia.net”,
“company”: {
“name”: “Deckow-Crist”,
“catchPhrase”: “Proactive didactic contingency”,
“bs”: “synergize scalable supply-chains”
}
}
]

I’m also curious how to use these json arrays by putting them in a dictionary.

Hi,

Use Deserialize JSON activity,
Set TypeArgument to System.Collections.Generic.Dictionary<of System.String, Object>
and set output Json object as ny variablename
Output will be converted to Dictionary(Of String, Object)

Thanks and Regards,
Geetishree Rao
gRao

1 Like

관심가져주셔서 감사합니다.

그런데,
첫 번째 jsondata는 가능하지만,
두 번째, 세 번째 jsondata는 어려운 상태입니다.

Sorry,I didnt get you.Could u plz translate it in english and repost

1 Like

The first ‘jsondata’ is possible, but
The second and third ‘jsondata’ are hard to convert.