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
- Host: GitHub
- URL: https://github.com/evex-dev/json-parser
- Owner: evex-dev
- License: apache-2.0
- Created: 2024-06-18T01:21:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-12T05:49:39.000Z (over 1 year ago)
- Last Synced: 2025-04-13T20:52:10.154Z (about 1 year ago)
- Topics: javascript, json, json-parser
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 }`));
```