private function createJsonBody(array $params)
    {
        return (0 === \count($params)) ? null : \json_encode($params, empty($params) ? \JSON_FORCE_OBJECT : 0);
    }
private function createJsonBody(array $params)
    {
        return (0 === \count($params)) ? null : \json_encode($params, empty($params) ? \JSON_FORCE_OBJECT : 0);
    }
private function createJsonBody ( array $ params ) { return ( 0 === \ count ( $ params ) ) ? null : \ json_encode ( $ params , empty ( $ params ) ? \ JSON_FORCE_OBJECT : 0 ) ; }
Create a JSON encoded version of an array of parameters.

@param array $params Request parameters

@return null|string
Create a JSON encoded version of an array of parameters .