Download the PHP package adhocore/json-comment without Composer
On this page you can find all versions of the php package adhocore/json-comment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adhocore/json-comment
More information about adhocore/json-comment
Files in adhocore/json-comment
Download adhocore/json-comment
More information about adhocore/json-comment
Files in adhocore/json-comment
Vendor adhocore
Package json-comment
Short Description Lightweight JSON comment stripper library for PHP
License MIT
Package json-comment
Short Description Lightweight JSON comment stripper library for PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package json-comment
adhocore/json-comment
- Lightweight JSON comment stripper library for PHP.
- Makes possible to have comment in any form of JSON data.
- Supported comments: single line
// comment
or multi line/* comment */
. - Also strips trailing comma at the end of array or object, eg:
[1,2,,]
=>[1,2]
{"x":1,,}
=>{"x":1}
- Handles literal LF (newline/linefeed) within string notation so that we can have multiline string
- Supports JSON string inside JSON string (see ticket #15 and PR #16)
- Zero dependency (no vendor bloat).
Installation
Usage
Example
An example JSON that this library can parse:
All versions of json-comment with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
ext-ctype Version *
ext-ctype Version *
The package adhocore/json-comment contains the following files
Loading the files please wait ....