MetrixWire.JSON (MetrixWire v0.2.2)

Copy Markdown View Source

Minimal, dependency-free JSON encoder — a fallback used only when neither the built-in JSON module (OTP 27+/Elixir 1.18+) nor Jason is available.

It handles exactly the shapes the SDK emits: maps with string keys, lists, strings, integers, floats, booleans and nil. It is not a general-purpose encoder.

Summary

Functions

Encode a term to a JSON binary. Never throws — returns an empty batch on error.

Functions

encode(term)

Encode a term to a JSON binary. Never throws — returns an empty batch on error.