Postgresql Check If Json Array Syntax Matlab Simulink