Foundry.Context.Compact (foundry v0.1.1)

Copy Markdown

Generic recursive compact serialization that filters empty values from maps and structs.

Recursively strips nil, false, [], and "" from any map at any nesting depth. Also sanitizes strings by replacing non-standard characters with ASCII equivalents.

Summary

Functions

compact(struct)