Skip to content

gov-ind/partial-json-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

partial-json-parser

Parse complete JavaScript objects from partial JSON strings.

Description

Incomplete JSON strings will be parsed to its nearest complete object.

Input: { "name": { "first": "ind", "last": "go

Output: { "name": { "first": "ind" } }

Installation

From the CLI:

npm install --save partial-json-parser

From JavaScript:

var partialParse = require('partial-json-parser');
var output = partialParse('{"key": "value"');

Alternatively, you can directly use the script in the browser with a script tag.

About

Utility to parse streamed JSON strings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •