json-validator

v0.0.2arrow_drop_down
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
121
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
505 B
Validate json string
1 contributor
Install json-validator as a package?
Copied
npm i @bit/amit.json.global.json-validator
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
global/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 str

Pass

validate json string when sending number should get exception

Pass

validate json string when sending broken json should get exception

Pass
Help and resources