fix createTable() function error with the param is JSON Object