I'm trying to deep-copy in JavaScript a struct from my Solidity smart contract, which is fetched using web3js
This is how I do it:
participant = await this.state.ContractInstance.methods.retrieveParticipant(0).call();
let deepParticipant = JSON.parse(JSON.stringify(participants));
A) If I console.log() the participant variable, this is what I get
B) If I console.log() the deepParticipant variable (the deep clone) I get this

They are not the same.
So the question is: How do I get a perfect deep copy of it? I also tried cloning using Lodash and the results are no better.