As a Roblox developer, it is currently hacky to utilise zstd compression within the engine. You can currently acheive this by calling JSONEncode with a buffer
and retrieve it from the returned JSON string, however, this is hacky because it relies on the implementation detail here with regards to how its formatted (also it encodes as a Base64 string).
The method for which is as follows:
- Identify the compressed stream in the JSON string, using JSONDecode doesn’t work because it decompresses the buffer.
- De-encode the Base64 string
Instead, it would be nice to simply compress the buffer directly without needing to JSONEncode it and doing this hacky workaround.
If Roblox is able to address this issue, it would improve my development experience because I could compress and decompress buffers without needing to rely on a HttpService method that itself is an implementation detail.