Skip to content

JWeaver makes it easy to generate well-structured, human-readable representations of Java objects. With a simple API, you can format objects dynamically, as a tree, or as a bullet list - each with customizable options to match your needs.

License

Notifications You must be signed in to change notification settings

robinloom/jweaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWeaver

Build And Test Maven Central Version

JWeaver is a simple, zero-decision Java utility for generating human-readable, structured string representations of objects. It eliminates the need to write custom toString() methods while producing consistent, safe, and readable output.


Minimal Usage – Zero Decisions

For most users, weaving an object is as easy as:

Person person = new Person("John Doe", "1990-01-01");
System.out.println(JWeaver.weave(person));

What happens automatically

  • Small objects → compact one-line output
  • Large or nested objects → structured tree output
  • Collections → limited to a safe number of elements
  • Circular or reciprocal references are detected
  • Sensitive fields (password, token, etc.) are automatically ignored

No builder, no configuration, no thinking required.

Example output:

Person[name=John Doe, birthday=1990-01-01]

Installation

Add JWeaver to your Maven project:

Maven
<dependency>
    <groupId>com.robinloom</groupId>
    <artifactId>jweaver</artifactId>
    <version>1.1.0</version>
</dependency>
Gradle
implementation 'com.robinloom:jweaver:1.1.0'

Why JWeaver?

  • Removes boilerplate toString() implementations
  • Ensures consistent, readable, and safe output
  • Works out-of-the-box for simple usage
  • Allows advanced configuration for power users

About

JWeaver makes it easy to generate well-structured, human-readable representations of Java objects. With a simple API, you can format objects dynamically, as a tree, or as a bullet list - each with customizable options to match your needs.

Topics

Resources

License

Stars

Watchers

Forks

Languages