SkillAgentSearch skills...

DotNetJsonPrettyPrinter

Json Pretty Printer/Beautifier Library For .Net

Install / Use

/learn @m4bwav/DotNetJsonPrettyPrinter
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DotNetJsonPrettyPrinter

Json Pretty Printer/Beautifier Library For .Net

Join the chat at https://gitter.im/m4bwav/DotNetJsonPrettyPrinter

Background article: http://www.markdavidrogers.com/oxitesample/Blog/json-pretty-printerbeautifier-library-for-net
nuget package: https://www.nuget.org/packages/JsonPrettyPrinter/

This library is a simple and light weight json pretty printer. There are few other .net json pretty printers, but they are usually heavier and focus on some other aspect of javascript or have only been described in article format.

You can use the pretty printer object or just the extension methods I've provided. I've included json and/or beautifing extension methods, for ease of use.

Example:

"{"Lorem":"ipsum","dolor":{ "sit":"amet"},"consectetur":{"adipisicing":{"sed":"do"}}}".PrettyPrintJson()

becomes:

{
    "Lorem": "ipsum",
    "dolor": {
        "sit": "amet"
    },
    "consectetur": {
        "adipisicing": {
            "sed": "do"
        }
    }
}
View on GitHub
GitHub Stars9
CategoryDevelopment
Updated3y ago
Forks2

Languages

C#

Security Score

70/100

Audited on Apr 15, 2022

No findings