src/Jaspersoft/Dto/DTOObject.php
public function jsonSerialize()
    {
        $data = array();
        foreach (get_object_vars($this) as $k => $v) {
            if (!empty($v)) {
                $data[$k] = $v;
            }
        }
        return $data;
    }
public function jsonSerialize()
    {
        $data = array();
        foreach (get_object_vars($this) as $k => $v) {
            if (!empty($v)) {
                $data[$k] = $v;
            }
        }
        return $data;
    }
public function jsonSerialize ( ) { $ data = array ( ) ; foreach ( get_object_vars ( $ this ) as $ k => $ v ) { if ( ! empty ( $ v ) ) { $ data [ $ k ] = $ v ; } } return $ data ; }
Creates an array based representation of class data to be serialized

@return array
Creates an array based representation of class data to be serialized