Started implementation for synchronize diagram json and the real
structure