Converts a ggplot object to a JSON-serializable structure with precise empty value handling and render hints for frontend.
ggplot_to_z_object(plot, include_data = TRUE, include_render_hints = TRUE)A list structure matching z_ggplot schema.
A ggplot object.
Whether to include data in output.
Whether to include frontend render hints.