MetaBrainz.Common.Json
7.2.0
dotnet add package MetaBrainz.Common.Json --version 7.2.0
NuGet\Install-Package MetaBrainz.Common.Json -Version 7.2.0
<PackageReference Include="MetaBrainz.Common.Json" Version="7.2.0" />
<PackageVersion Include="MetaBrainz.Common.Json" Version="7.2.0" />
<PackageReference Include="MetaBrainz.Common.Json" />
paket add MetaBrainz.Common.Json --version 7.2.0
#r "nuget: MetaBrainz.Common.Json, 7.2.0"
#:package MetaBrainz.Common.Json@7.2.0
#addin nuget:?package=MetaBrainz.Common.Json&version=7.2.0
#tool nuget:?package=MetaBrainz.Common.Json&version=7.2.0
MetaBrainz.Common.Json

JSON-related helper classes, for use by the other MetaBrainz.* packages.
Debugging
The JsonUtils class provides a TraceSource that can be used to
configure debug output; its name is MetaBrainz.Common.JsonUtils.
Configuration
In Code
In code, you can enable tracing like follows:
// Use the default switch, turning it on.
JsonUtils.TraceSource.Switch.Level = SourceLevels.All;
// Alternatively, use your own switch so multiple things can be
// enabled/disabled at the same time.
var mySwitch = new TraceSwitch("MyAppDebugSwitch", "All");
JsonUtils.TraceSource.Switch = mySwitch;
// By default, there is a single listener that writes trace events to
// the debug output (typically only seen in an IDE's debugger). You can
// add (and remove) listeners as desired.
var listener = new ConsoleTraceListener {
Name = "MyAppConsole",
TraceOutputOptions = TraceOptions.DateTime | TraceOptions.ProcessId,
};
JsonUtils.TraceSource.Listeners.Clear();
JsonUtils.TraceSource.Listeners.Add(listener);
In Configuration
Your application can also be set up to read tracing configuration from the application configuration file. To do so, the following needs to be added to its startup code:
System.Diagnostics.TraceConfiguration.Register();
(Provided by the System.Configuration.ConfigurationManager package.)
The application config file can then have a system.diagnostics section
where sources, switches and listeners can be configured.
<configuration>
<system.diagnostics>
<sharedListeners>
<add name="console" type="System.Diagnostics.ConsoleTraceListener" traceOutputOptions="DateTime,ProcessId" />
</sharedListeners>
<sources>
<source name="MetaBrainz.Common.JsonUtils" switchName="MetaBrainz.Common.JsonUtils">
<listeners>
<add name="console" />
<add name="json-log" type="System.Diagnostics.TextWriterTraceListener" initializeData="json-utils.log" />
</listeners>
</source>
</sources>
<switches>
<add name="MetaBrainz.Common.JsonUtils" value="All" />
</switches>
</system.diagnostics>
</configuration>
Release Notes
These are available on GitHub.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 was computed. 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. |
-
net10.0
- MetaBrainz.Common (>= 4.1.1)
-
net8.0
- MetaBrainz.Common (>= 4.1.1)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on MetaBrainz.Common.Json:
| Package | Downloads |
|---|---|
|
MetaBrainz.MusicBrainz
This package provides classes for accessing the MusicBrainz web services (lookup, search and OAuth2). |
|
|
MetaBrainz.MusicBrainz.CoverArt
This package provides classes for accessing the CoverArt Archive (CAA), enabling the retrieval of cover art for music releases based on their MusicBrainz ID. |
|
|
MetaBrainz.ListenBrainz
This package provides classes for accessing the ListenBrainz API (v1). |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on MetaBrainz.Common.Json:
| Repository | Stars |
|---|---|
|
jamesbrindle/YTMusicUploader
Automatically upload your music library and playlists to YouTube Music .Net Application. Upload songs to YouTube Music and bulk delete music and playlists from YouTube Music. C#.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 7.2.0 | 1,920 | 1/23/2026 |
| 7.1.0 | 8,021 | 9/20/2025 |
| 7.0.0 | 496 | 1/5/2025 |
| 6.0.2 | 175,451 | 1/1/2024 |
| 6.0.1 | 210 | 12/19/2023 |
| 6.0.0 | 147 | 12/15/2023 |
| 5.1.0 | 91,887 | 1/27/2022 |
| 5.0.0 | 3,403 | 11/13/2021 |
| 4.0.1 | 648 | 11/6/2021 |
| 4.0.0 | 835 | 12/23/2020 |
| 3.0.1 | 746 | 5/10/2020 |
| 3.0.0 | 2,648 | 4/25/2020 |
| 2.0.0 | 267 | 4/24/2020 |
| 1.1.1 | 269 | 4/16/2020 |
| 1.1.0 | 244 | 4/15/2020 |
| 1.0.0 | 441 | 3/21/2020 |