Add lattice as JSON model element.