https://github.com/isty001/json-dump
https://github.com/isty001/json-dump
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/isty001/json-dump
- Owner: Isty001
- License: mit
- Created: 2016-10-22T14:45:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-22T14:57:35.000Z (over 8 years ago)
- Last Synced: 2025-01-29T21:54:37.896Z (3 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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:
```php
$var1 = "Hello";
$va2 = 15;\JsonDump\Dumper::toJson($var1, $var2...)
```...will output something like this:
```json
[
{
"type": "string",
"value": "Hello"
},
{
"type": "integer",
"value": 15
}
]
```