# json-type

> find out what type is the json is.

Latest version **0.2.0** (published 2014-03-15) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-03-15 |
| First published | 2014-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chilijung |
| Maintainers | chilijung |
| Keywords | json, geojson, array, object, topojson |

## Links

- npm: https://www.npmjs.com/package/json-type
- Repository: https://github.com/DataGarage/json-type
- Issues: https://github.com/DataGarage/json-type/issues
- npm.io page: https://npm.io/package/json-type

## Dependencies (2)

- [topojson](https://npm.io/package/topojson.md) ^1.4.9
- [geojsonhint](https://npm.io/package/geojsonhint.md) git://github.com/chilijung/geojsonhint.git

## 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.2.0 (latest) — 2014-03-15
- 0.1.0 — 2014-03-14

## README

# json-type

[![Build Status](https://travis-ci.org/DataGarage/json-type.png?branch=master)](https://travis-ci.org/DataGarage/json-type)

Check what datatype is the json. The reason of making this repository is that you can't know if the data is a geojson or topojson or normal json. And this repository help you to find out.

## Install

```
npm install json-type
```


## API

### JsonType.isObject(str or json)

return true if it is object.

### JsonType.isArray(str or json)

return true if it is a array.

### JsonType.isJson(str or json)

return true if it is a json.

### JsonType.isGeojson(str or json)

return true if it is a geojson.

### JsonType.isTopojson(str or json)

return true if it is a topojson.


## License 

MIT [@chilijung](http://github.com/chilijung)

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