Safe JSON parsing/stringifying using promises
This tiny module provides a safe and modern way to parse or stringify JSON that uses type checking and promises.
I wrote this mini-module to more easily handle JSON within my projects.
Install & usage
Install it using npm:
npm install json-updated
You can use it anywhere you'd normally use the built-in JSON
methods:
const updatedJSON = // Stringify an object:updatedJSON // Parse a string:updatedJSON
This module now also ships with two simple methods for checking variable type. Both methods return a boolean:
// Check if an input is an objectupdatedJSON // Check if an input is a stringupdatedJSON
License
Copyright 2016 Michiel van der Velde.
This software is licensed under the MIT License.