\t1st3\JSONMinJSONMin

The JSONMin class

Summary

Methods
Properties
Constants
__construct()
getMin()
printMin()
minify()
No public properties found
No constants found
No protected methods found
$original_json
$minified_json
N/A
No private methods found
No private properties found
N/A

Properties

$original_json

$original_json : string

The original JSON string

Type

string — The original JSON string

$minified_json

$minified_json : string

The minified JSON string

Type

string — The minified JSON string

Methods

__construct()

__construct(string  $json) : object

Constructor

Parameters

string $json

Some JSON to minify

Returns

object —

the JSONMin object

getMin()

getMin() : string

Get the minified JSON

Returns

string —

Minified JSON string

printMin()

printMin() : object

Print the minified JSON

Returns

object —

the JSONMin object

minify()

minify(string  $json) : string

Static minify function

Parameters

string $json

Some JSON to minify

Returns

string —

Minified JSON string