🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

liquid-json

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liquid-json

Implementation of JSON that ignores BOM and thows friendly error

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
4
Created
Source

liquid-json

Implementation of JSON which ignores BOM and shows more detailed error messages on parse failures.

usage

$ npm install liquid-json --save;
var LJSON = require('liquid-json');
LJSON.parse('{ "hello": "world" }');
LJSON.stringify({ hello: 'world' });

LJSON.parse accepts reviver function as second parameter and LJSON.stringify accepts standard JSON parameters. All errors raised from this module has error name as JSONError.

attributions

  • https://github.com/rlidwka/jju
  • https://github.com/ariya/esprima

Keywords

json

FAQs

Package last updated on 26 Sep 2016

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