Class MOXMAN_Util_JsonEncoder

InheritanceMOXMAN_Util_JsonEncoder

JSON encoder written in native PHP. This can be used as a fallback for earlier PHP versions that didn't have native JSON support.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
encode() Encodes the specified PHP type into a JSON string. MOXMAN_Util_JsonEncoder

Method Details

encode() public static method

Encodes the specified PHP type into a JSON string.

public static \A encode ( $input )
$input Object

PHP object to encode as JSON.

return \A

JSON string out of the specified object.