workaround: checking if json decoded metadata is array