webignition/json-pretty-print
Pretty-print JSON strings with consistent, readable formatting. Includes a formatter you can embed in tools or CLIs to clean up minified or messy JSON, with sensible indentation and whitespace handling for clearer diffs, logs, and debugging output.
/api/v1/data?pretty=true).JSON.stringify() with indent).spatie/array-to-xml or symfony/yaml for broader needs.json_encode($data, JSON_PRETTY_PRINT).json-viewer.JSON.stringify() with indent).For Executives:
"This tiny, MIT-licensed PHP package solves a hidden productivity drain: unreadable JSON. By integrating webignition/json-pretty-print, we can instantly improve debugging speed for engineers and enhance our API’s usability for developers. For example, adding a ?pretty=true query param to our /health endpoint could cut on-call resolution time by 20%—with zero infrastructure cost. It’s a no-brainer upgrade for our tooling stack."
For Engineering: *"We’re adding a lightweight dependency to prettify JSON outputs, which will:
json_encode($data, JSON_PRETTY_PRINT) calls with a consistent, reusable function.Log::error() or Monolog for faster debugging.composer require webignition/json-pretty-print and wrap JsonPrettyPrinter::prettyPrint($jsonString). No breaking changes, just better readability."How can I help you explore Laravel packages today?