@frontalnh/json-dot-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

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"}}

Package Sidebar

Install

npm i @frontalnh/json-dot-parser

Weekly Downloads

194

Version

0.1.7

License

MIT

Unpacked Size

2.54 kB

Total Files

6

Last publish

Collaborators

  • frontalnh