{"_id":"extract-first-json","_rev":"5-c50377c933bf987cdbe90b7085db39cb","name":"extract-first-json","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"extract-first-json","version":"1.0.0","description":"Extract the first JSON object or array from a string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/extract-first-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/extract-first-json.git"},"keywords":["extract","json","object","array","from","string"],"main":"./build/index.js","scripts":{"build":"bob build","lint":"bob lint","postversion":"git push --tags","prepublishOnly":"yarn run build && yarn test","test":"jest"},"dependencies":{"parse-json-object":"^2.0.0","reduce-first":"^1.0.1"},"devDependencies":{"@bconnorwhite/bob":"^2.3.0","jest":"^26.4.2"},"eslintConfig":{"extends":"eslint-config-bob"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"extract-first-json@1.0.0","dist":{"shasum":"54563eda6f457cea2505c24a40c8ea80cb1a1357","integrity":"sha512-LbiSpZ2fzsoZfXP3VfFQV84hN75/jKWcK6tnOHsR1wTubrY6bw2MR8d2qRzTSiBL7QFpNcFdzSiO65XtO0++1g==","tarball":"https://registry.npmjs.org/extract-first-json/-/extract-first-json-1.0.0.tgz","fileCount":6,"unpackedSize":4558,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZ4ovCRA9TVsSAnZWagAAlugP/1CMm6w/T1i6mcCyaz3e\no1rY/RraGkTm9CVZQ4y5SB0uK6OMVgxQpeq2wv3uHVPkRErix0OVEgJGuwhZ\nXU/X+inJoKfZlqlV8TWdkMhUDiPqB+EP8errpjfyR9BU6A8M/uU2PDv5h9ix\n8OC3+spvgtn/wrOdEunAbjQorUCYbKmq5WqU6HRO4PyF6XoRfbt2rbDQ9YcP\nmjEVpFW8gTgoWOeL/HDgf5ccVAmuuGsokkwIVE3VM/A4Vn0IxXgGkXLloE1b\nv57rAN1NHK6ZsUVmj32QVGPbwGuz+fl/owHX0EBunx/kHsfKr208s1qWhHO7\nGbxiqGolmdbA2+TLzShHMOCW3V7/347WDWSRbQ3UgzCM6v4Y+6iFIR57ydrB\nzBi+H1lNE2rzGi1hr2Vn2L4y4qgHJ5I/Goe1CwmvcKIEmWHsx78eWhwAZwn8\nc1DBLPOIVXbSsy7binZEilVQde1oYw+djN/WkzUmhUUkLrlmPGj5nm1nbBwC\nrWR0RI2jTWLkswXIKNdUnhffCL0JIQvtB6R0qXiiCxTPHqo00vnDg15m8bZK\nvorZc+gGBWpBUvaAG0fUVPEmc5tBnS2l0XlXqNCylYhYyajFWsXvR1s3oYec\nugQtDCqMZD8KERH3BNnFLoVdieQU3/wDfI6V9/71G8SqKrRatoXHtA0KDwG2\nA48o\r\n=U2hi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFdxoTrlsIFv+TkoMFXVinmcvQIQOQ0u02nf2NOE3JtQAiEA8alSWprelKu5QjJW/ZMhqPptSjmLBJ22C8lG8fBh0Bg="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-first-json_1.0.0_1600621103215_0.23435158644866583"},"_hasShrinkwrap":false},"1.0.1":{"name":"extract-first-json","version":"1.0.1","description":"Extract the first JSON object or array from a string","license":"MIT","author":{"name":"Connor White","email":"connor.bcw@gmail.com","url":"https://connorwhite.org"},"homepage":"https://connorwhite.org/github/extract-first-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/extract-first-json.git"},"keywords":["extract","json","object","array","from","string"],"main":"./build/index.js","scripts":{"build":"bob build","lint":"bob lint","postversion":"git push --tags","prepublishOnly":"yarn run build && yarn test","test":"jest"},"dependencies":{"parse-json-object":"^2.0.0","reduce-first":"^1.0.1"},"devDependencies":{"@bconnorwhite/bob":"^2.3.0","jest":"^26.4.2"},"eslintConfig":{"extends":"eslint-config-bob"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-bob"},"_id":"extract-first-json@1.0.1","dist":{"shasum":"be828615ac0c83c982f22d8c93063e4f9dc2a356","integrity":"sha512-L4XmAoZaHyXawEy8fJuLfIjRH9rG9D3bLz6fiMepVMiw/0Mpu+OSYH3/XmJ6sCPjui8a8ayz6c46fWlQFhdLvA==","tarball":"https://registry.npmjs.org/extract-first-json/-/extract-first-json-1.0.1.tgz","fileCount":6,"unpackedSize":4691,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZ5daCRA9TVsSAnZWagAAcUwP/iRl4cmCk1uRE6hZ0Fol\nl27guIiDY3feTDuuz7ybguJJyh8NqQDTc8Mkc7T7xVY0llx5cgYht28wdI/8\n7XeITxeVLw6LM/33ZqJrQ68piCx9P3H+bITC8tpwgyN+Kz4UQTf0mcGvoxGC\npHtr6WDIbiSifO4fgmWXGZVkxqB9mwbl4Ldz8xf+Lu0IB9ouYU6YFdexSkKs\nKLc8DjkZN9MPBi1FskiJnmhi1VnWscphJ+mqTaOqXlJwRz7ScjTeTmy8uuVi\nVvnb4ARnkCkgPFTpuH7pMsDoA8JH36aDtPYvNl9ZaW0TCSfKCDlAUeIDxOhz\n1D5A8C+QJFDThHhVledqrVb9//zAWnKW6z+8GVXYlst93W4nSUkA/fcdZhLE\n3x6hQrAERCDQnO/Kvs6rtlzOStP2W6C3Z5mx+qyETcomaRnC8AKDKdzV00xp\nNbssc6ohLQpAyhYEf3sNb4FyBOQibe3DzYbIm54HIT5TW9Mr4dmweShW9QqL\ndnRyL4yrdrPrQoSVDO3DfY0qLVMkSrgouU8m99WQvyZTZE92utJHwOM2IMBs\n+Ekhi57nU5EovRONyQYUQPoy4+1uMXUOGnabnN7/OXwh+I+t1CRIJykZbwwk\n+muQOjOXoWpeN6wdKyP//JpOfGGaYsnGbqDrUMHtcJLat48bKAQAdpnKmPHq\nIPdp\r\n=0wnA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHOX5Pr82IPKkRy28MjJ3dw7YRTTUgaRTJBab29khfzeAiAQsW/TAtrJU5OktwZYwDPlzbmv6j2DVdoqQuiJDUkoTw=="}]},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-first-json_1.0.1_1600624473572_0.31767450134563036"},"_hasShrinkwrap":false},"2.0.0":{"name":"extract-first-json","version":"2.0.0","description":"Extract the first JSON object or array from a string","license":"MIT","private":false,"author":{"name":"Connor White"},"contributors":[{"name":"Connor White"}],"homepage":"https://connorwhite.dev/github/extract-first-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/extract-first-json.git"},"bugs":{"url":"https://github.com/bconnorwhite/extract-first-json/issues"},"keywords":["extract","json","object","array","from","string"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"build":"auto build","dev":"auto dev","lint":"auto lint","prepack":"yarn build","release":"auto release","test":"auto test","typecheck":"auto typecheck"},"dependencies":{"parse-json-object":"^3.0.1","reduce-first":"^2.0.0","types-json":"^4.0.0"},"devDependencies":{"autorepo":"^0.1.9"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"jest":{"preset":"@autosoft/jest-preset"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_id":"extract-first-json@2.0.0","dist":{"shasum":"e01eae36f97d4c52b90c77605b38a68d9d9fb3fd","integrity":"sha512-yusN6bywM6UVgahqbiiWaPGr7bSWJQ/7NzeTgYVSe/Dpr6QRkjPsYjqq2YjEEfD+wYH13hRCg4X2447pgVggug==","tarball":"https://registry.npmjs.org/extract-first-json/-/extract-first-json-2.0.0.tgz","fileCount":8,"unpackedSize":5612,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCocSp9cuJRAOCRBRpRqs0/J/478kpXj8kqwTKWqrFW+wIhAPsm4TC80Ap3hl9gsHBMBM+bXkAquMMPmADSqCpcqHiD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1wwFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq/+xAAox9mIhZSqiL8bO5C64Jn5BUZpX0ndIQP/gqiu4V1Ptn6ZrnG\r\nHHfojtP7YHTg5Zx0gAEw2k3Wlhi1svPgfAEC+W03bKSqWFNBTT3rPo2Q8Avs\r\nVaCoQf6d39g/z+cl3XoDG1rhmKtlRO2K/roBbkzU7NMU643p0+es/p1irTOi\r\nvWPFngnd6J1zOpaozWNuaIMuE5LYOcQU/y5BaJHzi9pOlXcOoWCQgfCG8OM4\r\naL0/OA77xtnuECJjWRNeBmXQAohizcOR7rkJ2T2n4WPliYygl/R+FmFtafnD\r\nhew0604MEJSuaBDsVIFdS/X3AfdOaPRWgsTVY7aakWn6VynjXmQzJ/qcwfni\r\nNr6ajmrPeb+XU8vIbrAqJ+albmFnyu6bM44yf45QcZeYwv7spheVlWpRAty0\r\ncmUpKslzucbEIKpvcvojwyAo3/c6lVcPHAYrntaXrbUJraTyKGzTfR+AGgWq\r\npzavOhYRVisYz1VludsA3TY454GTPoPDWvdMQ9dAmctsBUWR+qen1Gej6LKX\r\n23V8HavPc1+BubSi3SFKQX3lQ5jxVwo2wc4E1zO+/G6s+a/uaz4HksFFe+t9\r\nPNWgdMro3mu5T+KsXIfuOIuQdDVK/efPGZw73MLjrOVvYGdTzzu80b6SzXG5\r\nFuiz+WwKVmtHgG5aEEcfBBynxINp+Ij+FrU=\r\n=g6Ts\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-first-json_2.0.0_1675037701276_0.03220143066758485"},"_hasShrinkwrap":false},"2.0.1":{"name":"extract-first-json","version":"2.0.1","description":"Extract the first JSON object or array from a string","license":"MIT","private":false,"author":{"name":"Connor White"},"contributors":[{"name":"Connor White"}],"homepage":"https://connorwhite.dev/github/extract-first-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/extract-first-json.git"},"bugs":{"url":"https://github.com/bconnorwhite/extract-first-json/issues"},"keywords":["extract","json","object","array","from","string"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"build":"auto build","dev":"auto dev","lint":"auto lint","prepack":"yarn build","release":"auto release","test":"auto test","typecheck":"auto typecheck"},"dependencies":{"parse-json-object":"^3.0.1","reduce-first":"^2.0.0","types-json":"^4.0.0"},"devDependencies":{"autorepo":"^0.1.9"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"jest":{"preset":"@autosoft/jest-preset"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_id":"extract-first-json@2.0.1","dist":{"shasum":"1141c7adcca55f0718af41854d5d5b4e68eb55ad","integrity":"sha512-XHr3MLxQbL6qSEbLvDVemRD7WHtgQBzHjKjvtHL2IvksirW3ZElMtZAfFRBQJNcl5KYwDNJxEDJdTXB6GfuhYg==","tarball":"https://registry.npmjs.org/extract-first-json/-/extract-first-json-2.0.1.tgz","fileCount":8,"unpackedSize":5883,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF3QfpxfYWPAEGxHTQbwE5mXMfMa9PyykrjlG3wqS3RhAiEA7chJll95CLKXTvJ9Xi9UJ8k/Rh/5jjGsmGyJz+gtq78="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1wyHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKSQ/6A8BLHuu2Z8lDaxri0zjfU/FIjZ7dV1aR7Y0GFxVBAKFfvlG6\r\nMJCXAcWv5u+UJS7spo2KPh86h9eS23zsdNqlVbJHxr/m8mcgX6sYm0V6ltFO\r\n+dCXgiVAu4DA8/nTH+s1+M7pkq1bCxHMxBD3+3lpEqxfPBSoPTFA2CdZ9zv4\r\nnU9MTL2GT9yBo8xSFp+OVuDWv7E//BXhDW7WIL5/uJWEruLU63KkciUxN7qm\r\nRZTx6BKJZjPIuNVmbB1T0K5OSsXB41PHyHr/1RKDWsEQGJadDEVUVsTfnGmM\r\njhsS8yyphAFpsejoe74bGjWM8CJoe1WAVJ6ufWo95uQ61qCnrWps5uS3OKTl\r\nljx2jRKxZFM1BMFeut6RuSoh6vnlU8SH1RhvphxUrtT9LyeZ6e51Sisn9bm9\r\nA0wzktBUGOIFhG4LDNVJ2Al/9dWZG9M7Y9v5R4HG0ieqFN5SoyAheDeSvStH\r\n1rQiAgX+sUn4PIfjrgvkM+lTFCfq//vuKYW7iIgnXAAmXTc8Ymb1BusxtJeE\r\nw7dg0SVhGoZ/I286cEkebB2QAfmIRgvz7QsLmmG/M9TVg0PCQdmT9u5zrH9p\r\njFMTv+Y+Kx8VWeygs50cfyftngqT0OoP5iv+3YSmgwFZ4vWpwFsrJSOzKdlz\r\nZkVAcMJYE3Mc200O1UQ9GdaOfvbG2g9lpOY=\r\n=3Qhy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-first-json_2.0.1_1675037831280_0.8890247441816992"},"_hasShrinkwrap":false},"2.0.2":{"name":"extract-first-json","version":"2.0.2","description":"Extract the first JSON object or array from a string","license":"MIT","private":false,"author":{"name":"Connor White"},"contributors":[{"name":"Connor White"}],"homepage":"https://connorwhite.dev/github/extract-first-json","repository":{"type":"git","url":"git+https://github.com/bconnorwhite/extract-first-json.git"},"bugs":{"url":"https://github.com/bconnorwhite/extract-first-json/issues"},"keywords":["extract","json","object","array","from","string"],"type":"module","main":".auto/build/index.js","exports":"./.auto/build/index.js","types":".auto/build/index.d.ts","engines":{"node":"^14.13.1 || >=16.0.0"},"scripts":{"build":"auto build","dev":"auto dev","lint":"auto lint","prepack":"yarn build","release":"auto release","test":"auto test","typecheck":"auto typecheck"},"dependencies":{"parse-json-object":"^3.0.1","reduce-first":"^2.0.0"},"devDependencies":{"autorepo":"^0.1.9"},"eslintConfig":{"extends":"@autosoft/eslint-config"},"jest":{"preset":"@autosoft/jest-preset"},"npmpackagejsonlint":{"extends":"npm-package-json-lint-config-auto"},"_id":"extract-first-json@2.0.2","dist":{"shasum":"1001274b5ebd1255aaea9f8f5ca369db0e90aff7","integrity":"sha512-QApuPo1dfpndAkUgD6co4VVM9lQczlzHPEBE6afDA4BwXvqSRqp/vYRBEo1yLJ91cOa0Z566+UDpCo+6Gq52LQ==","tarball":"https://registry.npmjs.org/extract-first-json/-/extract-first-json-2.0.2.tgz","fileCount":8,"unpackedSize":6114,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGpr7J43ixjuiDDpCoU4d6A486P6ozsECmEIt3nOuUewIhAMVzNIulFX58F6pPlP1Ng89FHF4y+FZwrCOZCqzDIief"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1w0TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAmQ/+Ou+0miqvYO8YympM3FNSxN+t5ZI1VU6CNZ3al8tD2Km6wle9\r\n/vZMx1ea3EGG3FdVgzWp/ZAnuFN90FkwmpfEjTE3P1IIhMLdNO8LXeoqRe4g\r\nPUb2saF0gNtCQWrLAav0LwbbAH/UKsJVRoVWtbyW+ZH1Nk1o3259mVYA2teL\r\nKy8wLjC7ZNlGIWnpUrcK0YV1D29j/kPwPCn/4foy6E8YqU9z3JwKmEV8Awsy\r\nNZ4+uvDNl7ICyqdgSKzg8XSLmr+c3NNABNf4NPaXX3VIU/eTIEQyoRcOmuj1\r\nPyDavgjnydsMdMr9PStiA6wEIETIS5v8gciyR8G0lb6M02LL/TaekTDkWLUO\r\nK8AQyM2oy5f0OUhwDtCTZ5vWDlEfrYO+s1f6pbx0pN5facgL6blBipbqTRBh\r\n9oyfn9HVb7+7qDP5LYJVps6aX2zXUM6tG7/IUEIcC3H4AX377jk3Mz5Uzf8l\r\njeV0W4bDpTKAVmwS7n+sz3n3onUj/fg0R+RpwfsXc1SM83E56f6no9LSw98h\r\nksp7XUxMZmEsNVNy9jxHGc9eHrqRHBgSuwTkzeqyJqA+WL5nFMqVfSrZZ3MX\r\nvs49zkGVc0mz+6FuzFvPYOVU0D/6hZrWH/FLra58ujl5ZHW7H6B1J8Q1fGqt\r\nZuDlwqRjqDFrVhTfvDcFT4oUgszPQBHj5i0=\r\n=Bo52\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bconnorwhite","email":"connor.bcw@gmail.com"},"directories":{},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/extract-first-json_2.0.2_1675037970990_0.06603256344545105"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-20T16:58:23.215Z","1.0.0":"2020-09-20T16:58:23.380Z","modified":"2023-01-30T00:19:31.307Z","1.0.1":"2020-09-20T17:54:33.701Z","2.0.0":"2023-01-30T00:15:01.492Z","2.0.1":"2023-01-30T00:17:11.448Z","2.0.2":"2023-01-30T00:19:31.192Z"},"maintainers":[{"name":"bconnorwhite","email":"connor.bcw@gmail.com"}],"description":"Extract the first JSON object or array from a string","homepage":"https://connorwhite.dev/github/extract-first-json","keywords":["extract","json","object","array","from","string"],"repository":{"type":"git","url":"git+https://github.com/bconnorwhite/extract-first-json.git"},"author":{"name":"Connor White"},"license":"MIT","readme":"<!--BEGIN HEADER-->\n<div id=\"top\" align=\"center\">\n  <h1>extract-first-json</h1>\n  <a href=\"https://npmjs.com/package/extract-first-json\">\n    <img alt=\"NPM\" src=\"https://img.shields.io/npm/v/extract-first-json.svg\">\n  </a>\n  <a href=\"https://github.com/bconnorwhite/extract-first-json\">\n    <img alt=\"TypeScript\" src=\"https://img.shields.io/github/languages/top/bconnorwhite/extract-first-json.svg\">\n  </a>\n</div>\n\n<br />\n\n<blockquote align=\"center\">Extract the first JSON object or array from a string.</blockquote>\n\n<br />\n\n_If I should maintain this repo, please ⭐️_\n<a href=\"https://github.com/bconnorwhite/extract-first-json\">\n  <img align=\"right\" alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/bconnorwhite/extract-first-json?label=%E2%AD%90%EF%B8%8F&style=social\">\n</a>\n\n_DM me on [Twitter](https://twitter.com/bconnorwhite) if you have questions or suggestions._\n<a href=\"https://twitter.com/bconnorwhite\">\n  <img align=\"right\" alt=\"Twitter\" src=\"https://img.shields.io/twitter/url?label=%40bconnorwhite&style=social&url=https%3A%2F%2Ftwitter.com%2Fbconnorwhite\">\n</a>\n\n---\n<!--END HEADER-->\n\n## Installation\n\n```sh\nyarn add extract-first-json\n```\n\n```sh\nnpm install extract-first-json\n```\n\n```sh\npnpm add extract-first-json\n```\n\n<br />\n\n## Usage\n\n```ts\nimport { extractJSON, extractJSONObject, extractJSONArray } from \"extract-first-json\";\n\nconst string = `Example: { \"ok\": true }`;\n\nconst arrayString = `Example: [{ \"ok\": true }]`;\n\nextractJSON(string); // { ok: true }\n\nextractJSONObject(string); // { ok: true }\n\nextractJSONArray(arrayString); // [{ \"ok\": true }]\n```\n\n<!--BEGIN FOOTER-->\n\n<br />\n\n<h2 id=\"dependencies\">Dependencies<a href=\"https://www.npmjs.com/package/extract-first-json?activeTab=dependencies\"><img align=\"right\" alt=\"dependencies\" src=\"https://img.shields.io/librariesio/release/npm/extract-first-json.svg\"></a></h2>\n\n- [parse-json-object](https://www.npmjs.com/package/parse-json-object): Parse a typed JSON object from a string\n- [reduce-first](https://www.npmjs.com/package/reduce-first): Return early from reduce\n\n<br />\n\n<h3>Dev Dependencies</h3>\n\n- [autorepo](https://www.npmjs.com/package/autorepo): Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.\n\n<br />\n\n<h2 id=\"license\">License <a href=\"https://opensource.org/licenses/MIT\"><img align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/extract-first-json.svg\"></a></h2>\n\n[MIT](https://opensource.org/licenses/MIT)\n<!--END FOOTER-->\n","readmeFilename":"README.md","contributors":[{"name":"Connor White"}],"bugs":{"url":"https://github.com/bconnorwhite/extract-first-json/issues"}}