I am doing encryption/decryption of my appsettings.json file within my ASP.NET application.
After decryption, my file is correctly decrypted to the following string:
{
"ConnectionStrings": {
"IdentityServer4": "server=(localdb)\\mssqllocaldb;database=IdentityServer4.Quickstart.EntityFramework;trusted_connection=yes"
}
}
I would now like to convert that result to an object, which I attempt to do using the following line of code:
dynamic result = JsonConvert.DeserializeObject(jsonString);
When that line executes, I receive the following error:
"Unexpected character encountered while parsing value: . Path '', line 0, position 0."