change stdio format to be an arrray of objects