protected function getFieldFromBody($key, $body)
    {
        $rpc = json_decode($body, true);

        return isset($rpc[$key]) ? $rpc[$key] : null;
    }
protected function getFieldFromBody($key, $body)
    {
        $rpc = json_decode($body, true);

        return isset($rpc[$key]) ? $rpc[$key] : null;
    }
protected function getFieldFromBody ( $ key , $ body ) { $ rpc = json_decode ( $ body , true ) ; return isset ( $ rpc [ $ key ] ) ? $ rpc [ $ key ] : null ; }
Get field from body

@param string $key
@param string $body

@return mixed
Get field from body