JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 34
  • Score
    100M100P100Q89736F
  • License MIT

Converts json object whick has key written in dot notation to plain json object

Package Exports

  • @frontalnh/json-dot-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@frontalnh/json-dot-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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