Validate JSON against a schema in .Net

10,081

Solution 1

Json.NET has this functionality.

Solution 2

A free and open-source alternative to Json.NET is NJsonSchema (JSON Schema draft 4).

Share:
10,081
AwkwardCoder
Author by

AwkwardCoder

Updated on June 20, 2022

Comments

  • AwkwardCoder
    AwkwardCoder almost 2 years

    I know there is a proposed standard for JSON schema validation, is there an implementation in .Net?

  • Michael Freidgeim
    Michael Freidgeim over 5 years
    JSON Schema validation has been moved to its own package. See newtonsoft.com/jsonschema
  • Kevbot
    Kevbot about 5 years
    And it's not free
  • timelmer
    timelmer about 4 years
    It is, there's a free (albeit somewhat limited - 1k validations/hr) version under the AGPL.