extract-first-json
Extract the first JSON object or array from a string
Last updated 6 years ago by bconnorwhite .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install extract-first-json 
SYNC missed versions from official npm registry.

extract-first-json

npm typescript GitHub stars Twitter Follow

Extract the first JSON object or array from a string.

Installation

yarn add extract-first-json
npm install extract-first-json

API

import { extractJSON, extractJSONObject, extractJSONArray } from "extract-first-json";

const string = `Results: { "ok": true }`;

extractJSON(string); // { ok: true }

Dependenciesdependencies


Dev DependenciesDavid


License license

MIT

Current Tags

  • 1.0.1                                ...           latest (6 years ago)

2 Versions

  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |