Serialize struct of array into binary! HELP

Hey guys I need to send and store a ghost replay (struct of array with location and rotation) to PlayFab.
How can I Serialize a struct of array into binary data? I’m not so good with c++ can someone explain me how it works? Thankssssssss