Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naipofo/json-tiny
minify your json even more
https://github.com/naipofo/json-tiny
Last synced: 25 days ago
JSON representation
minify your json even more
- Host: GitHub
- URL: https://github.com/naipofo/json-tiny
- Owner: naipofo
- License: mit
- Created: 2020-11-16T21:00:32.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-16T23:53:18.000Z (about 4 years ago)
- Last Synced: 2024-11-28T05:17:40.899Z (about 1 month ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON-tiny
Stringify objects beyond what `JSON.stringify` can!
JSON-tiny can reduce the size of JSON strings by strategically using scientific notation to reduce size of numbers. Objects stringifed with JSON-tiny will still work everywhere just like a normal JSON string would, it keeps to the [JSON standard](https://json.org).
|JSON.stringify|JSON-tiny|
|--|--|
|`200000`|`2e5`|
|`20e+30`|`20e30`|
|`2.6e+40`|`26e39`|
|`-5.6e-20`|`-56e-21`|