Documentation
¶
Overview ¶
Package jsoncodec provides a JSON implementation of the Codec interface, allowing tabular data to be exported in either standard JSON array format or newline-delimited JSON (JSON Lines). It supports per-type value mapping, row preprocessing, and row limits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*jsonCodec)
Option defines a functional configuration option for jsonCodec.
func WithCustomType ¶
WithCustomType registers a custom mapping function to convert a specific Go type to its JSON representation, using optional metadata.
func WithLimit ¶
WithLimit sets a limit on the number of rows to export. A negative value disables the limit.
func WithNewlineDelimited ¶
WithNewlineDelimited enables newline-delimited JSON (JSON Lines) format.
Click to show internal directories.
Click to hide internal directories.