Skip to content

Add PrettyObject to directly render objects as json/yaml - #32

Merged
rickwporter merged 1 commit into
mainfrom
rickwporter/pretty-object
Nov 9, 2026
Merged

rickwporter merged 1 commit into
mainfrom
rickwporter/pretty-object

Conversation

@rickwporter

Copy link
Copy Markdown
Owner

RATIONALE

The PrettyObject class renders List or Map objects. When the output format is json or yaml, it renders the objects directly (not putting into table). For other output formats, it creates the PrettyTable using TableBuilder and renders the table.

Rendering the objects directly for json and yaml allows consumers to see the data in a more understandable fashion. It avoids any issues with translating the data to a PrettyTable.

CHANGES

Added PrettyObject to render data. It has special handling for some data types, and json and yaml output formats.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor
File Coverage [100%] 🍏
PrettyObject.java 100% 🍏
Total Project Coverage 100% 🍏

@rickwporter
rickwporter merged commit 2d9c2f7 into main Nov 9, 2026
4 checks passed
@rickwporter
rickwporter deleted the rickwporter/pretty-object branch November 9, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant