Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-parser

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-parser - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

2

package.json
{
"name": "json-parser",
"version": "2.0.2",
"version": "2.0.3",
"description": "JSON parser to parse JSON object and MAINTAIN comments.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -24,4 +24,7 @@ [![Build Status](https://travis-ci.org/kaelzhang/node-json-parser.svg?branch=master)](https://travis-ci.org/kaelzhang/node-json-parser)

const {parse} = require('json-parser')
```
parse(text, reviver? = null, remove_comments? = false): null | object
```ts
parse(text, reviver? = null, remove_comments? = false)
: object | string | number | boolean | null
```

@@ -33,3 +36,3 @@

Returns `object | null` corresponding to the given JSON text.
Returns `object | string | number | boolean | null` corresponding to the given JSON text.

@@ -36,0 +39,0 @@ content

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc