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' } ] }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    540
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    540
  • 1.0.2
    4,787
  • 1.0.1
    190
  • 1.0.0
    0

Package Sidebar

Install

npm i deep-parse-json

Weekly Downloads

5,517

Version

2.0.0

License

ISC

Unpacked Size

28.9 kB

Total Files

7

Last publish

Collaborators

  • sibumaiti