Namespace Codebelt.Extensions.Newtonsoft.Json
The Codebelt.Extensions.Newtonsoft.Json
namespace contains both types and extension methods that complements the Newtonsoft.Json
namespace by adding new ways of working with JSON; both in terms of serialization and parsing.
Availability: .NET 9, .NET 8 and .NET Standard 2.0
Complements: Newtonsoft.Json namespace 🔗
Extension Methods
Type | Ext | Methods |
---|---|---|
JDataResult | ⬇️ | Flatten , ExtractArrayValues , ExtractObjectValues |
JsonReader | ⬇️ | ToHierarchy |
JsonSerializerSettings | ⬇️ | ApplyToDefaultSettings |
JsonWriter | ⬇️ | WriteObject , WritePropertyName |
Validator | ⬇️ | InvalidJsonDocument |
Classes
- DynamicContractResolver
Provides a factory based way to create and wrap an Newtonsoft.Json.Serialization.IContractResolver implementation.
- JData
Provides a factory based way to parse and extract values from various sources of JSON data. Compliant with RFC 7159 as it uses Newtonsoft.Json.JsonTextReader behind the scene.
- JDataResult
Specifies a result set of a JSON reader operation.
- JDataResultExtensions
Extension methods for the JDataResult class.
- JsonConverterFactory
Provides a factory based way to create and wrap an Newtonsoft.Json.JsonConverter implementation.
- JsonSerializerSettingsExtensions
Extension methods for the Newtonsoft.Json.JsonSerializerSettings class.
- JsonWriterExtensions
Extension methods for the Newtonsoft.Json.JsonWriter.
- ValidatorExtensions
Extension methods for the Validator class.