global/json-validator
v0.0.2
0.0.2
0.0.1
3
In json
MIT
PUBLIC
103
0     DEPENDENCIES
BuildPass

Validate json string

Use global/json-validator in your project
npm i @bit/amit.json.global.json-validator

jsonValidator (str:string)

Validate json string

Example

```js
const vaildateJson = require('bit/global/json-validator');
vaildateJson(jsonStr).catch(err => console.log(err))
```

Argument

str: string

Returns

promise

Test Summary


validate json string validate proper json strPass
validate json string when sending number should get exceptionPass
validate json string when sending broken json should get exceptionPass