# partial-json-parser

> Parse complete javascript objects from partial JSON strings

Latest version **1.2.2** (published 2019-05-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install partial-json-parser
pnpm add partial-json-parser
yarn add partial-json-parser
bun add partial-json-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2019-05-04 |
| First published | 2017-06-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 68.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | gov |
| Maintainers | rgovind92 |

## Links

- npm: https://www.npmjs.com/package/partial-json-parser
- npm.io page: https://npm.io/package/partial-json-parser

## Recent versions

- 1.2.2 (latest) — 2019-05-04
- 1.2.1 — 2019-05-04
- 1.1.1 — 2019-02-02
- 1.1.0 — 2019-02-02
- 1.0.3 — 2018-03-31
- 1.0.2 — 2017-06-21
- 0.0.1 — 2017-06-19

## README

# 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.

---
_Source: https://npm.io/package/partial-json-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
