json-to-datatype

Simple function which takes a JSON-formatted object and returns that object with proper datatypes


Keywords
json, datatype, datatypes, data, type, types
License
MIT
Install
npm install json-to-datatype@1.1.5

Documentation

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

Links

npm