Skip to content

StubbleOrg/Stubble.Extensions.JsonNet

Repository files navigation

Json.Net Stubble Extensions Build Status codecov Prerelease Nuget Stable Nuget

This repository contains easy to use extensions for interacting with Newtonsoft Json.Net.

To use this just include it in your project by downloading the dll from the release section, or preferably including it from Nuget.org through the badge above.

Example Usage:

var builder = new StubbleBuilder().Configure(settings => settings.AddJsonNet()).Build();

It's as simple as that, the package contains an Extension method for the StubbleBuilder adding in the ValueGetters required to handle JTokens.

Compilation

Currently this does not contain ValueGetters that work with compilation. If there is a demand for this however we will consider adding another package or add the dependency to this package.

Credits

Straight Razor by Vectors Market from the Noun Project