CloudNative.CloudEvents.NewtonsoftJson
2.9.0
dotnet add package CloudNative.CloudEvents.NewtonsoftJson --version 2.9.0
NuGet\Install-Package CloudNative.CloudEvents.NewtonsoftJson -Version 2.9.0
<PackageReference Include="CloudNative.CloudEvents.NewtonsoftJson" Version="2.9.0" />
<PackageVersion Include="CloudNative.CloudEvents.NewtonsoftJson" Version="2.9.0" />
<PackageReference Include="CloudNative.CloudEvents.NewtonsoftJson" />
paket add CloudNative.CloudEvents.NewtonsoftJson --version 2.9.0
#r "nuget: CloudNative.CloudEvents.NewtonsoftJson, 2.9.0"
#:package CloudNative.CloudEvents.NewtonsoftJson@2.9.0
#addin nuget:?package=CloudNative.CloudEvents.NewtonsoftJson&version=2.9.0
#tool nuget:?package=CloudNative.CloudEvents.NewtonsoftJson&version=2.9.0
About
This package provides a CloudEvent formatter for the JSON event format using Newtonsoft.Json; for an overview of formatters and their types in this SDK, see the CloudEvent formatters section of the user guide.
How to Use
Create the formatter, encode a CloudEvent, then decode it again:
using CloudNative.CloudEvents;
using CloudNative.CloudEvents.NewtonsoftJson;
var cloudEvent = new CloudEvent
{
Id = Guid.NewGuid().ToString(),
Source = new Uri("https://example.com/orders"),
Type = "com.example.order.created",
DataContentType = "application/json",
Data = new { OrderId = 1234 }
};
var formatter = new JsonEventFormatter();
var body = formatter.EncodeStructuredModeMessage(cloudEvent, out var contentType);
var decoded = formatter.DecodeStructuredModeMessage(body, contentType, extensionAttributes: null);
For more examples, see Samples.
Additional Documentation
| Product | Versions 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 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. |
| .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 was computed. |
| .NET Framework | net461 was computed. net462 was computed. 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. |
-
.NETStandard 2.0
- CloudNative.CloudEvents (>= 2.9.0)
- Newtonsoft.Json (>= 13.0.4)
-
net10.0
- CloudNative.CloudEvents (>= 2.9.0)
- Newtonsoft.Json (>= 13.0.4)
-
net8.0
- CloudNative.CloudEvents (>= 2.9.0)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages (16)
Showing the top 5 NuGet packages that depend on CloudNative.CloudEvents.NewtonsoftJson:
| Package | Downloads |
|---|---|
|
Beef.Events
Business Entity Execution Framework (Beef) Events framework. |
|
|
CoreEx.Newtonsoft
CoreEx .NET Newtonsoft Extensions. |
|
|
LineTen.Messaging.AzureServiceBus.CloudEvents
Provides CloudEvents serialization for LineTen.Messaging.AzureServiceBus |
|
|
MF40.DataModel
Package Description |
|
|
LineTen.Messaging.EnhancedAzureServiceBus
Package Description |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on CloudNative.CloudEvents.NewtonsoftJson:
| Repository | Stars |
|---|---|
|
ravendb/ravendb
ACID Document Database
|
|
|
meteatamel/knative-tutorial
A collection of samples for Knative Serving, Knative Eventing and Knative-GCP projects.
|
|
|
GoogleCloudPlatform/functions-framework-dotnet
FaaS (Function as a service) framework for writing portable .NET functions
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.9.0 | 16,557 | 7/4/2026 |
| 2.8.0 | 2,183,852 | 8/7/2024 |
| 2.7.1 | 1,689,134 | 9/4/2023 |
| 2.7.0 | 223,713 | 7/31/2023 |
| 2.6.0 | 513,045 | 3/7/2023 |
| 2.5.1 | 323,303 | 11/10/2022 |
| 2.5.0 | 1,737,448 | 10/17/2022 |
| 2.4.0 | 173,711 | 9/8/2022 |
| 2.3.1 | 164,055 | 6/29/2022 |
| 2.3.0 | 103,548 | 5/31/2022 |
| 2.2.0 | 343,403 | 2/2/2022 |
| 2.1.1 | 404,502 | 7/21/2021 |
| 2.1.0 | 13,576 | 7/14/2021 |
| 2.0.0 | 81,660 | 6/15/2021 |
| 2.0.0-rc.1 | 2,084 | 6/7/2021 |
| 2.0.0-beta.3 | 653 | 5/12/2021 |
| 2.0.0-beta.2 | 4,018 | 5/5/2021 |