deserialize json elements and lists