\ElasticaJSON

Elastica JSON tools.

Summary

Methods
Properties
Constants
parse()
stringify()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getJsonLastErrorMsg()
No private properties found
N/A

Methods

parse()

parse(  $args) : array

Parse JSON string to an array.

Parameters

$args

Throws

\Elastica\Exception\JSONParseException

Returns

array —

PHP array representation of JSON string

stringify()

stringify(  $args) : string

Convert input to JSON string with standard options.

Parameters

$args

Throws

\Elastica\Exception\JSONParseException

Returns

string —

Valid JSON representation of $input

getJsonLastErrorMsg()

getJsonLastErrorMsg() : string

Get Json Last Error.

Returns

string