flatten the faces in the json_index_face_set function