An open API service indexing awesome lists of open source software.

https://github.com/evex-dev/json-parser

Fastest JSON Parser in JavaScript
https://github.com/evex-dev/json-parser

javascript json json-parser

Last synced: 5 months ago
JSON representation

Fastest JSON Parser in JavaScript

Awesome Lists containing this project

README

          

# json-parser

‼‼ Do not use this in Server-Side ‼‼


(If you try to use it by mistake, not works, but it works in a sandboxed worker.)

‼ Please use this in Client-Side ‼

Fastest JSON Parser in JavaScript
Don't use it in a important project.
Do not run against untrusted json.
Use only if the response is from your own server and you trust it.

- faster x5 than `JSON.parse`
- faster x10 than `parse-json`

```bash
npx jsr add @evex/json-parser
pnpx jsr add @evex/json-parser
yarn dlx jsr add @evex/json-parser
bunx jsr add @evex/json-parser
deno add @evex/json-parser
```

```ts
import { JSONParser } from "@evex/json-parser";
console.log(JSONParser(`{ "name": "evex", "age": 11, "likes": ["apple", "banana"], "isMan": true }`));
```