I have Dictionary, which contains json paths and values:
Logging.Console.IncludeScopes = true
Logging.LogLevel.Microsoft = "Warning"
Logging.LogLevel.System= "Warning"
Sort.TypeOrder = "asc"
I want to generate json from this dictionary.
{
"Logging": {
"Console": {
"IncludeScopes": true
},
"LogLevel": {
"Microsoft": "Warning",
"System": "Warning"
}
},
"Sort": {
"TypeOrder": [
"asc"
]
}
}
How can I achieve this?