Webiny\Component\StdLib\StdLibTrait::jsonEncode PHP Method

jsonEncode() protected static method

protected static jsonEncode ( mixed $value, integer $options ) : string | boolean
$value mixed The value being encoded. Can be any type except a resource. This function only works with UTF-8 encoded data.
$options integer
return string | boolean A JSON encoded string on success or FALSE on failure.
    protected static function jsonEncode($value, $options = 0)
    {
        return json_encode($value, $options);
    }