Compresses arrays filled with JSON objects