Convert a json array to MATLAB matrix, if all elements are of type int, double or bool. Faster processing for large json arrays.