@buddyshift/validatejson

This is used to validate a json or object.

Usage no npm install needed!

<script type="module">
  import buddyshiftValidatejson from 'https://cdn.skypack.dev/@buddyshift/validatejson';
</script>

README

This Module is use to Validate the json object. You can pass the object and a json in validateJson function and it will return you the boolen, If the json or object is valid then it will return you true and if it is not then it will return you false.

Download the module and validate the json or object.

npm i @buddyshift/validatejson

Example

const validateFunc = require("@buddyshift/validatejson");

const response = validateFunc.validate({"a":123})

call validate function to validate the json or object.

Note: Always use lastest module.