json-to-datatype
v1.1.5
Published
Simple function which takes a JSON-formatted object and returns that object with proper datatypes
Downloads
2
Maintainers
Readme
JSON to Datatype
Simple function which takes a JSON object or JSON-formatted string and returns an object with sensible datatypes.
Includes type definitions.
Installation
npm install json-to-datatype
Usage
Javascript
const jsonToDatatype = require('json-to-datatype').jsonToDatatype;
Typescript
import { jsonToDatatype } from 'json-to-datatype';
Conversions
- Numbers
- Booleans
- Dates