Skip to main content

Module output_common

Module output_common 

Source
Expand description

Shared output formatting utilities for all response types.

Functions§

format_partial_footer
Format the “partial: true” footer for human-readable output
format_total_header
Format the “total: N” header for human-readable output
is_json_format
Check if format is JSON (either Json or Pretty)
render_json_response
Render any serializable response as JSON with partial result wrapper