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

editor-json-parser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editor-json-parser

this repo support parse standard [json](http://json.org/) and something like this:

1.1.1
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

editor-json-parser

this repo support parse standard json and something like this:

Build Status NPM Version NPM Downloads

support: AMD / CommonJs / script tag

{
  "foo": 'bar'
}

{
  foo: 'bar'
}

{
  'foo': "bar"
}

it also support comments and comma at last line

{
  // comment
  foo: 'bar'    // comment
}

{
  foo: 'bar',
  foo1: 'bar1',
}

commonjs usage

npm install --save editor-json-parser

let parser = require('editor-json-parser');
let result = parser.parse("{foo: 'bar'}");
// result: {foo: 'bar'}
result = parser.parse("{'foo': 'bar'}");
// result: {foo: 'bar'}
result = parser.parse('{"foo": "bar"}');
// result: {foo: 'bar'}

script tag

<script src="./dist/json_parser.js"><script/>

var jsonParser = window.json_parser;

AMD support

...

FAQs

Package last updated on 19 May 2017

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