Package io.karatelabs.output
Class AnsiJson
java.lang.Object
io.karatelabs.output.AnsiJson
Fast ANSI colorizer for JSON text.
Uses a simple state-machine scanner without full JSON parsing.
Designed for console output of HTTP request/response bodies.
-
Method Summary
-
Method Details
-
colorize
Colorize JSON text with ANSI codes. Returns the original text unchanged if colors are disabled.- Parameters:
json- the JSON text to colorize- Returns:
- colorized JSON string
-