Lotus.Export.Value (Lotus v0.16.4)

Copy Markdown View Source

Value normalization for export formats. Handles various database types and edge cases for CSV and JSON export.

Summary

Functions

Normalizes a value for JSON export, keeping appropriate types.

Normalizes a value for CSV export, converting to a string representation.

Normalizes a value for display in UI, converting to a readable string representation.

Functions

for_json(value)

@spec for_json(term()) :: term()

Normalizes a value for JSON export, keeping appropriate types.

to_csv_string(value)

@spec to_csv_string(term()) :: String.t()

Normalizes a value for CSV export, converting to a string representation.

to_display_string(value)

@spec to_display_string(term()) :: String.t()

Normalizes a value for display in UI, converting to a readable string representation.