Skip to content

frontalnh/json-dot-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

json-dot-parser

Converts json object whick has key with dot notation to plain json object

Install

npm install @frontalnh/json-dot-parser

Usage

import { removeDotInJson } from '@frontalnh/json-dot-parser';

let data = {
  a: 'a',
  b: 'b',
  'c.a': 'a',
  'c.b': 'b'
};

removeDotInJson(data);
console.log(data); // {a:"a",b:"b",c:{a:"a",b:"b"}}

About

Converts json object whick has key with dot notation to plain json object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published