class Crul::Formatters::JSON::PrettyPrinter
- Crul::Formatters::JSON::PrettyPrinter
- Reference
- Object
Overview
taken almost verbatim from https://github.com/crystal-lang/crystal/blob/c551b35cb170893ad5454db0122dc28789d40bef/samples/pretty_json.cr needed changes:
- @input is IO | String instead of IO
- JSON constant needs to be “rooted” (::JSON)