Microsoft.Extensions.Configuration.Json 10.0.0-rc.1.25451.107

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Configuration.Json.
dotnet add package Microsoft.Extensions.Configuration.Json --version 10.0.0-rc.1.25451.107
                    
NuGet\Install-Package Microsoft.Extensions.Configuration.Json -Version 10.0.0-rc.1.25451.107
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.0-rc.1.25451.107" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="10.0.0-rc.1.25451.107" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Configuration.Json" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Extensions.Configuration.Json --version 10.0.0-rc.1.25451.107
                    
#r "nuget: Microsoft.Extensions.Configuration.Json, 10.0.0-rc.1.25451.107"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.Extensions.Configuration.Json@10.0.0-rc.1.25451.107
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Extensions.Configuration.Json&version=10.0.0-rc.1.25451.107&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Configuration.Json&version=10.0.0-rc.1.25451.107&prerelease
                    
Install as a Cake Tool

About

JSON configuration provider implementation for Microsoft.Extensions.Configuration. This package enables you to read your application's settings from a JSON file. You can use JsonConfigurationExtensions.AddJsonFile extension method on IConfigurationBuilder to add the JSON configuration provider to the configuration builder.

How to Use

The following example shows how to read application settings from the JSON configuration file.

using System;
using Microsoft.Extensions.Configuration;

class Program
{
    static void Main()
    {
        // Build a configuration object from JSON file
        IConfiguration config = new ConfigurationBuilder()
            .AddJsonFile("appsettings.json")
            .Build();

        // Get a configuration section
        IConfigurationSection section = config.GetSection("Settings");

        // Read simple values
        Console.WriteLine($"Server: {section["Server"]}");
        Console.WriteLine($"Database: {section["Database"]}");

        // Read a collection
        Console.WriteLine("Ports: ");
        IConfigurationSection ports = section.GetSection("Ports");

        foreach (IConfigurationSection child in ports.GetChildren())
        {
            Console.WriteLine(child.Value);
        }
    }
}

To run this example, include an appsettings.json file with the following content in your project:

{
  "Settings": {
    "Server": "example.com",
    "Database": "Northwind",
    "Ports": [ 80, 81 ]
  }
}

You can include a configuration file using a code like this in your .csproj file:

<ItemGroup>
  <Content Include="appsettings.json">
    <CopyToOutputDirectory>Always</CopyToOutputDirectory>
  </Content>
</ItemGroup>

Additional Documentation

Feedback & Contributing

Microsoft.Extensions.Configuration.Json is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4.4K)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Configuration.Json:

Package Downloads
Microsoft.Extensions.Configuration.UserSecrets

User secrets configuration provider implementation for Microsoft.Extensions.Configuration. User secrets mechanism enables you to override application configuration settings with values stored in the local secrets file. You can use UserSecretsConfigurationExtensions.AddUserSecrets extension method on IConfigurationBuilder to add user secrets provider to the configuration builder.

Microsoft.Extensions.Hosting

Hosting and startup infrastructures for applications.

Microsoft.Azure.WebJobs

This package contains the runtime host components of the WebJobs SDK. For more information, please visit https://go.microsoft.com/fwlink/?linkid=2279708.

Microsoft.ApplicationInsights.AspNetCore

Application Insights for ASP.NET Core web applications. See https://azure.microsoft.com/documentation/articles/app-insights-asp-net-five/ for more information. Privacy statement: https://go.microsoft.com/fwlink/?LinkId=512156

Microsoft.AspNetCore

Microsoft.AspNetCore

GitHub repositories (712)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Extensions.Configuration.Json:

Repository Stars
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
icsharpcode/ILSpy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
dotnet/efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
microsoft/garnet
Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
d2phap/ImageGlass
🏞 A lightweight, versatile image viewer
chocolatey/choco
Chocolatey - the package manager for Windows
babalae/better-genshin-impact
📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI Automation Testing Tools For Genshin Impact
dotnet/orleans
Cloud Native application framework for .NET
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 8.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
ThreeMammals/Ocelot
.NET API Gateway
microsoft/ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
elsa-workflows/elsa-core
A .NET workflows library
NancyFx/Nancy
Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
ant-design-blazor/ant-design-blazor
🌈A rich set of enterprise-class UI components based on Ant Design and Blazor.
ldqk/Masuit.Tools
全龄段友好的C#万能工具库,码数吐司库,包含一些常用的操作类,大都是静态类,加密解密,反射操作,权重随机筛选算法,分布式短id,表达式树,linq扩展,文件压缩,多线程下载,硬件信息,字符串扩展方法,日期时间扩展操作,中国农历,大文件拷贝,图像裁剪,验证码,断点续传,集合扩展、Excel导出等常用封装。诸多功能集一身,代码量不到2MB!
Version Downloads Last Updated
10.0.0-rc.1.25451.107 17,869 9/9/2025
10.0.0-preview.7.25380.108 37,194 8/12/2025
10.0.0-preview.6.25358.103 35,343 7/15/2025
10.0.0-preview.5.25277.114 50,771 6/6/2025
10.0.0-preview.4.25258.110 36,609 5/12/2025
10.0.0-preview.3.25171.5 72,562 4/10/2025
10.0.0-preview.2.25163.2 40,572 3/18/2025
10.0.0-preview.1.25080.5 62,204 2/25/2025
9.0.9 715,134 9/9/2025
9.0.8 4,356,644 8/4/2025
9.0.7 3,982,827 7/8/2025
9.0.6 5,336,308 6/10/2025
9.0.5 6,641,517 5/13/2025
9.0.4 10,592,776 4/8/2025
9.0.3 8,490,359 3/11/2025
9.0.2 9,032,816 2/11/2025
9.0.1 9,355,625 1/14/2025
9.0.0 24,375,719 11/12/2024
9.0.0-rc.2.24473.5 192,585 10/8/2024
9.0.0-rc.1.24431.7 128,686 9/10/2024
9.0.0-preview.7.24405.7 112,308 8/13/2024
9.0.0-preview.6.24327.7 115,731 7/9/2024
9.0.0-preview.5.24306.7 78,661 6/11/2024
9.0.0-preview.4.24266.19 64,030 5/21/2024
9.0.0-preview.3.24172.9 176,417 4/11/2024
9.0.0-preview.2.24128.5 87,804 3/12/2024
9.0.0-preview.1.24080.9 108,729 2/13/2024
8.0.1 85,311,230 10/8/2024
8.0.0 187,780,450 11/14/2023
8.0.0-rc.2.23479.6 343,604 10/10/2023
8.0.0-rc.1.23419.4 200,600 9/12/2023
8.0.0-preview.7.23375.6 158,727 8/8/2023
8.0.0-preview.6.23329.7 129,404 7/11/2023
8.0.0-preview.5.23280.8 134,556 6/13/2023
8.0.0-preview.4.23259.5 364,075 5/16/2023
8.0.0-preview.3.23174.8 245,270 4/11/2023
8.0.0-preview.2.23128.3 85,964 3/14/2023
8.0.0-preview.1.23110.8 158,350 2/21/2023
7.0.0 139,073,486 11/7/2022
7.0.0-rc.2.22472.3 226,912 10/11/2022
7.0.0-rc.1.22426.10 173,610 9/14/2022
7.0.0-preview.7.22375.6 215,428 8/9/2022
7.0.0-preview.6.22324.4 115,148 7/12/2022
7.0.0-preview.5.22301.12 73,020 6/14/2022
7.0.0-preview.4.22229.4 117,352 5/10/2022
7.0.0-preview.3.22175.4 73,237 4/13/2022
7.0.0-preview.2.22152.2 61,448 3/14/2022
7.0.0-preview.1.22076.8 50,884 2/17/2022
6.0.1 1,739,050 11/12/2024
6.0.0 313,537,867 11/8/2021
6.0.0-rc.2.21480.5 571,946 10/12/2021
6.0.0-rc.1.21451.13 354,200 9/14/2021
6.0.0-preview.7.21377.19 215,474 8/10/2021
6.0.0-preview.6.21352.12 131,160 7/14/2021
6.0.0-preview.5.21301.5 82,201 6/15/2021
6.0.0-preview.4.21253.7 65,564 5/24/2021
6.0.0-preview.3.21201.4 210,346 4/8/2021
6.0.0-preview.2.21154.6 110,644 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21102.12 146,610 2/12/2021 6.0.0-preview.1.21102.12 is deprecated because it is no longer maintained.
5.0.0 200,333,824 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.5 281,281 10/13/2020 5.0.0-rc.2.20475.5 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.14 340,274 9/14/2020 5.0.0-rc.1.20451.14 is deprecated because it is no longer maintained.
5.0.0-preview.8.20407.11 70,492 8/25/2020 5.0.0-preview.8.20407.11 is deprecated because it is no longer maintained.
5.0.0-preview.7.20364.11 135,950 7/21/2020 5.0.0-preview.7.20364.11 is deprecated because it is no longer maintained.
5.0.0-preview.6.20305.6 60,792 6/25/2020 5.0.0-preview.6.20305.6 is deprecated because it is no longer maintained.
5.0.0-preview.5.20278.1 51,166 6/10/2020 5.0.0-preview.5.20278.1 is deprecated because it is no longer maintained.
5.0.0-preview.4.20251.6 128,472 5/18/2020 5.0.0-preview.4.20251.6 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.2 48,765 4/23/2020 5.0.0-preview.3.20215.2 is deprecated because it is no longer maintained.
5.0.0-preview.2.20160.3 122,606 4/2/2020 5.0.0-preview.2.20160.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20120.4 44,892 3/16/2020 5.0.0-preview.1.20120.4 is deprecated because it is no longer maintained.
3.1.32 3,713,807 12/13/2022
3.1.31 1,168,933 11/8/2022
3.1.30 1,984,909 10/11/2022
3.1.29 533,442 9/13/2022
3.1.28 678,302 8/9/2022
3.1.27 626,934 7/12/2022
3.1.26 602,073 6/14/2022
3.1.25 1,056,000 5/10/2022
3.1.24 961,884 4/11/2022
3.1.23 1,578,416 3/8/2022
3.1.22 12,497,501 12/14/2021
3.1.21 2,557,535 11/7/2021
3.1.20 1,521,750 10/11/2021
3.1.19 1,508,634 9/14/2021
3.1.18 2,982,398 8/10/2021
3.1.17 2,284,089 7/13/2021
3.1.16 2,778,847 6/8/2021
3.1.15 3,545,756 5/11/2021
3.1.14 4,494,827 4/6/2021
3.1.13 6,143,587 3/9/2021
3.1.12 3,492,610 2/9/2021
3.1.11 5,656,791 1/12/2021
3.1.10 12,004,181 11/9/2020
3.1.9 15,193,861 10/13/2020
3.1.8 18,000,586 9/8/2020
3.1.7 13,205,635 8/11/2020
3.1.6 21,951,847 7/14/2020
3.1.5 21,252,831 6/9/2020
3.1.4 13,581,461 5/12/2020
3.1.3 24,189,330 3/24/2020
3.1.2 19,341,167 2/18/2020
3.1.1 15,503,645 1/14/2020
3.1.0 202,748,107 12/3/2019
3.1.0-preview3.19553.2 75,446 11/13/2019 3.1.0-preview3.19553.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19525.4 10,769 11/1/2019 3.1.0-preview2.19525.4 is deprecated because it is no longer maintained.
3.1.0-preview1.19506.1 21,624 10/15/2019 3.1.0-preview1.19506.1 is deprecated because it is no longer maintained.
3.0.3 769,003 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 838,896 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.1 2,836,899 11/18/2019 3.0.1 is deprecated because it is no longer maintained.
3.0.0 26,252,278 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19456.10 30,677 9/16/2019 3.0.0-rc1.19456.10 is deprecated because it is no longer maintained.
3.0.0-preview9.19423.4 218,547 9/4/2019 3.0.0-preview9.19423.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.4 224,724 8/13/2019 3.0.0-preview8.19405.4 is deprecated because it is no longer maintained.
3.0.0-preview7.19362.4 185,695 7/23/2019 3.0.0-preview7.19362.4 is deprecated because it is no longer maintained.
3.0.0-preview6.19304.6 546,920 6/12/2019 3.0.0-preview6.19304.6 is deprecated because it is no longer maintained.
3.0.0-preview5.19227.9 211,070 5/6/2019 3.0.0-preview5.19227.9 is deprecated because it is no longer maintained.
3.0.0-preview4.19216.2 33,522 4/18/2019 3.0.0-preview4.19216.2 is deprecated because it is no longer maintained.
3.0.0-preview3.19153.1 151,811 3/6/2019 3.0.0-preview3.19153.1 is deprecated because it is no longer maintained.
3.0.0-preview.19074.2 137,609 1/29/2019 3.0.0-preview.19074.2 is deprecated because it is no longer maintained.
3.0.0-preview.18572.1 33,686 12/4/2018 3.0.0-preview.18572.1 is deprecated because it is no longer maintained.
2.2.0 119,110,383 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 221,948 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.
2.2.0-preview2-35157 116,004 9/12/2018 2.2.0-preview2-35157 is deprecated because it is no longer maintained.
2.2.0-preview1-35029 56,351 8/22/2018 2.2.0-preview1-35029 is deprecated because it is no longer maintained.
2.1.1 59,279,210 6/18/2018
2.1.0 279,192,231 5/29/2018
2.1.0-rc1-final 107,674 5/6/2018 2.1.0-rc1-final is deprecated because it is no longer maintained.
2.1.0-preview2-final 85,919 4/10/2018 2.1.0-preview2-final is deprecated because it is no longer maintained.
2.1.0-preview1-final 190,017 2/26/2018 2.1.0-preview1-final is deprecated because it is no longer maintained.
2.0.2 8,780,072 5/7/2018 2.0.2 is deprecated because it is no longer maintained.
2.0.1 10,070,014 3/13/2018 2.0.1 is deprecated because it is no longer maintained.
2.0.0 48,017,489 8/11/2017 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview2-final 149,389 6/28/2017 2.0.0-preview2-final is deprecated because it is no longer maintained.
2.0.0-preview1-final 72,096 5/10/2017 2.0.0-preview1-final is deprecated because it is no longer maintained.
1.1.2 15,595,189 5/9/2017 1.1.2 is deprecated because it is no longer maintained.
1.1.1 4,332,248 3/6/2017 1.1.1 is deprecated because it is no longer maintained.
1.1.0 4,548,212 11/16/2016 1.1.0 is deprecated because it is no longer maintained.
1.1.0-preview1-final 35,345 10/24/2016 1.1.0-preview1-final is deprecated because it is no longer maintained.
1.0.2 20,758,997 3/6/2017 1.0.2 is deprecated because it is no longer maintained.
1.0.1 987,409 12/12/2016 1.0.1 is deprecated because it is no longer maintained.
1.0.0 10,465,146 6/27/2016 1.0.0 is deprecated because it is no longer maintained.
1.0.0-rc2-final 191,112 5/16/2016 1.0.0-rc2-final is deprecated because it is no longer maintained.
1.0.0-rc1-final 494,194 11/18/2015 1.0.0-rc1-final is deprecated because it is no longer maintained.