Skip to content

Compact json using color styles #1976

@ericnewton76

Description

@ericnewton76

Would be nice to have styled compact json.

                AnsiConsole.Write(new JsonText(jsonStr)
                    .MemberColor(Color.DarkOrange)
                    .BracesColor(Color.Gray)
                    .BracketColor(Color.Gray)
                    .StringColor(Color.Yellow)
                    .NumberColor(Color.Yellow)
                    .BooleanColor(Color.Yellow)
                    .NullColor(Color.Yellow)
                    .Compact()
                );

---
Please upvote :+1: this issue if you are interested in it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions