Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/gregsdennis/json-everything

System.Text.Json-based support for all of your JSON needs.
https://github.com/gregsdennis/json-everything

json json-e json-logic json-patch json-path json-pointer json-schema jsonschema-validator yaml2json

Last synced: 4 months ago
JSON representation

System.Text.Json-based support for all of your JSON needs.

Lists

README

        

[![Build & Test](https://github.com/gregsdennis/json-everything/actions/workflows/dotnet-core.yml/badge.svg?branch=master&event=push)](https://github.com/gregsdennis/json-everything/actions/workflows/dotnet-core.yml)
[![Test results](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/gregsdennis/28607f2d276032f4d9a7f2c807e44df7/raw/test-results-badge.json)](https://github.com/gregsdennis/json-everything/actions?query=workflow%3A%22Build+%26+Test%22)
[![Percentage of issues still open](http://isitmaintained.com/badge/open/gregsdennis/json-everything.svg)](https://github.com/gregsdennis/json-everything/issues "Percentage of issues still open")
[![Average time to resolve an issue](http://isitmaintained.com/badge/resolution/gregsdennis/json-everything.svg)](https://github.com/gregsdennis/json-everything/issues "Average time to resolve an issue")
[![License](https://img.shields.io/github/license/gregsdennis/json-everything)](https://github.com/gregsdennis/json-everything/blob/master/LICENSE)

## What is `json-everything`?

The primary philosophy behind `json-everything` is to ensure that common JSON functionality has good support in the _System.Text.Json_ space.

The first step to that is checking whether there exist other projects that support a given function.

If so, that effort likely won't be duplicated here. A bit farther down you'll find a list of other projects that are doing some cool things with JSON.

Otherwise, it's open to consideration for this project.

Playground
Documentation
Blog

Try it online
json-everything.net

Try it online
docs.json-everything.net

Try it online
blog.json-everything.net

Discuss
Ask
Built with

Slack
StackOverflow
Made with Jetbrains Resharper

## What's in the box?

There are actually multiple boxes. Each piece of functionality has been broken out into its own library, so you can pick and choose the one(s) that you need.

All libraries are built to .Net Standard 2.0 and .Net 8.

JsonSchema.Net
NuGet versionNuGet version
JSON Schema, drafts 6 and higher

JsonSchema.Net.Generation
NuGet versionNuGet version
Generation of schemas from .Net types

JsonSchema.Net.DataGeneration
NuGet versionNuGet version
Random instance data generation (powered by Bogus)

JsonSchema.Net.Data
NuGet versionNuGet version
A vocabulary for accessing instance and external data

JsonSchema.Net.ArrayExt
NuGet versionNuGet version
A vocabulary for extending array validation

JsonSchema.Net.OpenApi
NuGet versionNuGet version
OpenApi 3.1 vocabulary extension (used by Graeae)

JsonPath.Net
NuGet versionNuGet version
JSON Path (RFC 9535)

JsonPatch.Net
NuGet versionNuGet version
JSON Patch (RFC 6902)

JsonPointer.Net
NuGet versionNuGet version
JSON Pointer (RFC 6901) and Relative JSON Pointer (Specification)

JsonLogic
NuGet versionNuGet version
JsonLogic (Website)

JsonE.Net
NuGet versionNuGet version
JSON-e (Website)

Json.More.Net
NuGet versionNuGet version
General-use extensions that probably should have been included in System.Text.Json[.Nodes] but weren't

Yaml2JsonNode
NuGet versionNuGet version
Conversions between the YAML document model in YamlDotNet and JsonNode (both directions).

All of the above libraries offer complete support for their associated specifications.

Error message translations for _JsonSchema.Net_ available in:

- Italian `it`
- Norwegian `nb-NO`
- Polish `pl-PL`
- Russian `ru`
- Spanish `es`
- Swedish `sv-SE`
- Turkish `tr-TR`

***NOTE** Each language pack is provided by its own Nuget package.*

You can also view JSON Schema Test Suite results on [Bowtie](https://bowtie-json-schema.github.io/bowtie), which runs the test suite against multiple implementations across different platforms.

***DISCLAIMER** My library, _JsonSchema.Net_, is not related to or associated with the website https://jsonschema.net, except that they are both excellent JSON Schema tools.*

### Deprecated packages

These packages have also been a part of this suite but are no longer supported.

JsonSchema.Net.CodeGeneration
NuGet versionNuGet version
Generation of C# code from schemas
Deprecated in favor of Corvus.JsonSchema

## _System.Text.Json_ support by other projects

If you don't find what you're looking for here, please try one of these excellent projects:

- [JsonCons.Net](https://github.com/danielaparker/JsonCons.Net) by [@danielaparker](https://github.com/danielaparker)
- JSON Pointer
- JSON Patch
- JSON Merge Patch
- JSON Path
- JMES Path
- [Corvus.JsonSchema](https://github.com/corvus-dotnet/Corvus.JsonSchema) by [@mwadams](https://github.com/mwadams)
- JSON Schema validation with a C# code generation focus
- (more to come)

If you use JSON to do something that is not covered by a library in this suite or one of the above projects, feel free to [create a feature issue](https://github.com/gregsdennis/json-everything/issues/new?assignees=&labels=feature&projects=&template=New_function.yml).

If you maintain or know of another project that extends _System.Text.Json_ to do cool things, I'd like to list it here, so please [create a general issue](https://github.com/gregsdennis/json-everything/issues/new) to let me know about it.

## Contributors

Please see the [Code of Conduct](./CODE_OF_CONDUCT.md) and the [CONTRIBUTING](./CONTRIBUTING.md) file for more information.