Is there a way to have configuration sections written in JSON instead of XML?
Let\'s suppose I have the following ConfigurationSection
:
publ
You can change your own UsersConfig class that it will be able to serialize and deserialize to JSON. Then write another class that will retrieve configuration from your file. In app.config you can add single setting that will point you to the place where you store your json config.
You can achieve this easily by using Json.Net and adding attributes to your UsersConfig class.