Deserialisation of embedded documents