Skip to content
Configuration provider that allows you to use in-memory Json as a configuration source
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/SapientGuardian.InMemoryJsonConfiguration
test/InMemoryJsonConfigurationTests
.gitattributes
.gitignore
LICENSE
README.md
SapientGuardian.InMemoryJsonConfiguration.sln
appveyor.yml

README.md

SapientGuardian.InMemoryJsonConfiguration

Build status NuGet Package

Description

SapientGuardian.InMemoryJsonConfiguration is a configuration provider based on Microsoft.Extensions.Configuration.Json that allows you to use in-memory Json as a configuration source.

How to use it

     var json = @"
    {
    'firstname': 'test',
    'test.last.name': 'last.name',
        'residential.address': {
            'street.name': 'Something street',
            'zipcode': '12345'
        }
    }";
            var configurationBuilder = new ConfigurationBuilder();
            var config = configurationBuilder.AddJson(json)
                .Build();


            Assert.Equal("test", config["firstname"]);
You can’t perform that action at this time.