PHP Class Elastica\JSON

Show file Open project: ruflin/Elastica Class Usage Examples

Public Methods

Method Description
parse ( $args ) : array Parse JSON string to an array.
stringify ( $args ) : string Convert input to JSON string with standard options.

Private Methods

Method Description
getJsonLastErrorMsg ( ) : string Get Json Last Error.

Method Details

parse() public static method

Parse JSON string to an array.
public static parse ( $args ) : array
return array PHP array representation of JSON string

stringify() public static method

Convert input to JSON string with standard options.
public static stringify ( $args ) : string
return string Valid JSON representation of $input