I have json object which is reading like configuration.Getsection("XYZconfig").Get(); in code it is working fine in local. After inserting the config values in azure keyvault the XYZconfig section is taking as below, The quotation is appending before and after brackets. so it is unable to read using configuration.Getsection("XYZconfig").Get(). How to read this config values.
"XYZconfig": "{ "key1":"vaule1", "key2":"value2", "key3":"value3" }"

Trimlikevar configSection = configuration.GetSection("XYZconfig").Value.Trim('"');Newtonsoft.Jsonto handle escaped strings which like mjb said:var XYZconfig = _configuration.GetSection("XYZconfig").Value; var key1 = JObject.Parse(XYZconfig).GetValue("key1");?