JSON-Slim
Minify JSON better than JSON.stringify().
It achieves this by converting Numbers, number Strings and Booleans to a shorter form. You should be aware of this in your application, type checks might fail.
Installation
npm i json-slim
Example
var slim = ; var json = ; console;
Output:
JSON-Slim: 90% of original.
{"true":1,"false":0,"number":123e3,"numberString":123e3,"decimalFraction":123e-5,"decimalFractionString":123e-5,"exponent":123e3,"exponentString":123e3,"customField":"I am Lord Voldemort"}
Even less?
Check out json-lean if your JSON requests have the same object structure.