1.0.2 • Published 6 years ago

json-data-schema v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Target :

  • get data structure from JSON data

Format :

  • String : 'string'
  • Number : 'number'
  • Boolean : 'boolean'
  • Array : ...
  • Object : {...}

Example :

const jsonSchema = require('json-data-struct'); jsonSchema({ "stringType" : "this is string", "numberType" : 1, "booleanType" : true, "objectType" : { "child" : "content" } "arrayType" : ["hello"] });

Result :

{ stringType : 'string', numberType : 'number', booleanType : 'boolean', objectType : { child : 'string' }, arrayType : ['string'] }