2017 © Pedro Peláez
 

library json-dump

Dump in pretty JSON format

image

isty001/json-dump

Dump in pretty JSON format

  • Saturday, October 22, 2016
  • by Isty001
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

JSON dump

Utility to dump any kind of PHP variable in pretty JSON format. Can be useful when the output is also expected to be JSON., (*1)

Example:

$var1 = "Hello";
$va2 = 15;

\JsonDump\Dumper::toJson($var1, $var2...)

...will output something like this:, (*2)

[
    {
        "type": "string",
        "value": "Hello"
    },
    {
        "type": "integer",
        "value": 15
    }
]

The Versions

22/10 2016

dev-master

9999999-dev https://github.com/Isty001/json-dump

Dump in pretty JSON format

  Sources   Download

The Development Requires

json dump var_dump dumper