New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cheap-glitch/jsonast

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cheap-glitch/jsonast

A JSON to AST parser which allows error recovery.

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

jsonast is a json to ast parser with some error correction

license npm travis coveralls Standard Version renovate badge

Rationale

jsonast is a json to AST parser with some error correction. Most json parsers do not do error correction or do not allow parsing to AST. jsonast combines both of this.

Installation

Grab jsonast via npm:

npm install jsonast

API documentation

import parse from 'jsonast';

// Allows plain valid json
const ast = parse('{}');

// but also invalid json like this ones (note the missing commas)
const ast = parse(`
  {
    "key1": "value"
    "key2": "value"
  }
`);
const ast = parse(`
  [
    "entry1"
    "entry2"
  ]
`);

jsonast is built by KnisterPeter and contributors and released under the MIT license.

Keywords

FAQs

Package last updated on 06 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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