This module formats an input JSON string to minimize the amount of whitespace making it smaller without altering the code. Note that minimization comes at the expense of code readability.
Full details of this module are available in the knowledgebase article: Using the [JSON] Minify module