fixing json decoded array