src/DataParser.php
public static function parseDataArray($json, string $returnClass): array
    {
        $result = [];
        if (is_array($json)) {
            foreach ($json as $entry) {
                $result[] = static::parseData($entry, $returnClass);
            }
        }
        return $result;
    }
public static function parseDataArray($json, string $returnClass): array
    {
        $result = [];
        if (is_array($json)) {
            foreach ($json as $entry) {
                $result[] = static::parseData($entry, $returnClass);
            }
        }
        return $result;
    }
public static function parseDataArray ( $ json , string $ returnClass ) : array { $ result = [ ] ; if ( is_array ( $ json ) ) { foreach ( $ json as $ entry ) { $ result [ ] = static :: parseData ( $ entry , $ returnClass ) ; } } return $ result ; }
Parses the given JSON data into an array of return_class instances.

@param object $json        The JSON data. Must be valid
@param string $returnClass The expected return class

@return array
Parses the given JSON data into an array of return_class instances .