https://github.com/zlikavac32/json-minify
Simple and fast JSON minifier
https://github.com/zlikavac32/json-minify
c json json-minify
Last synced: about 1 month ago
JSON representation
Simple and fast JSON minifier
- Host: GitHub
- URL: https://github.com/zlikavac32/json-minify
- Owner: zlikavac32
- Created: 2019-09-01T00:41:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-28T14:51:24.000Z (over 4 years ago)
- Last Synced: 2025-06-07T14:03:06.475Z (about 1 year ago)
- Topics: c, json, json-minify
- Language: C
- Homepage:
- Size: 1000 Bytes
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JSON minifier
This is a simple JSON minifier implementation that removes whitespaces from a JSON passed on the STDIN and outputs minified JSON on the STDOUT. Minifier does not parse anything but just rather uses simple state machine to remove whitespaces not contained within a string.
It's capable of processing 1Gb/s when reading from `tmpfs` on a `Ryzen 7` CPU.
Compile it with `gcc -03 json-minify.c -o json-minify`