Replace JSON parsing logic with serde_derive for sync
Don't merge before !362 (merged). There are commits that belong to that MR.
I won't implement events yet because that is shared with the remaining work on this front and I need to think how I will do it depending on how it will be used.
Edited by Alejandro Domínguez