JSON encoding for Discord Gateway payloads via Jason.
Text-based format useful for debugging. Payloads are slightly larger than ETF and decoding is slower, but the output is human-readable.
Summary
Functions
Decodes a JSON binary into a map with string keys.
Encodes a map as a JSON text frame.
Returns "json" for the gateway URL query parameter.