I have a json string with the following structure
{
"resource": "user",
"method": "create",
"fields": {
"name": "John",
"surname: "Smith",
"email": "john@gmail.com"
}
}
The keys inside fields are variable, that means I don't know them in advance
So, instead of deserializing a json string to an object, I need to traverse the json, in order to get the properties inside fields in a Dictionary or something like that.
I heard about the Json.NET library and it's ability to parse dynamic jsons, but I'm not sure it it's already included in net-core or not.
What would be the standard / easiest way to accomplish that in net-core 2.0. Code example would be appreciated.