# json-checker

> JSON validation of instance type and values

Latest version **0.0.7** (published 2017-02-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install json-checker
pnpm add json-checker
yarn add json-checker
bun add json-checker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2017-02-22 |
| First published | 2017-02-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aleksandar Orlic |
| Maintainers | aorlic |
| Keywords | json, validation, schema, instance |

## Links

- npm: https://www.npmjs.com/package/json-checker
- npm.io page: https://npm.io/package/json-checker

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.7 (latest) — 2017-02-22

## README

json-checker
============

This library validates JSON instances against both JSON schema and some expected values.  

## Installation

```
npm install json-checker
```

## Usage

var checker = require("json-checker.js"), 
	schema, json, result;


// Input parameters: 
//		schema: JSON schema 
//		json;	JSON instance to be checked 


// Sync version
result = checker.check(schema, json);
	// do something with result

// async version
checker.asyncCheck(schema, json, callback(err, result) {
	// do something with result
});

---
_Source: https://npm.io/package/json-checker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
