deep-parse-json
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

deep-parse-json

Recursively parses a stringified json and returns javascript object

Usage

  npm install --save deep-parse-json
  or
  yarn add deep-parse-json
  const { deepParseJson } = require('deep-parse-json')
  const stringified = '{"personList":"[{\\"name\\":\\"siba\\"},{\\"name\\":\\"bhaskar\\"}]"}'
  console.log(deepParseJson(stringified))
  // { personList: [ { name: 'siba' }, { name: 'bhaskar' } ] }

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i deep-parse-json

    Weekly Downloads

    8,046

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    28.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • sibumaiti