Made matrix similar to original json