The full description of the link you are giving suggests that you should use "compressToUTF16" and it will always work, not just "compress", which will not always work.
I checked it personally and saw that it works.
(Although I changed the Context_Compress_Data.str field from a string to StringBuilder in a C # file because it was too slow to run. After that, it only took 8 seconds for the 8 MB JSON file to be compressed to 7% original size.)
source
share