Skip to content

Isty001/json-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Example:

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

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

...will output something like this:

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages