I have a multidimensional array, which consists of 426 smaller arrays, which also comprise of 4 attributes.. Below is an example of one of 426 arrays...
Finally it turns out that some of the values are date format (object). When they are converted to simple types (string or integer), the problem is solved. Hope this can help.