Let $json be an array in insertRow() and updateRow()