Adding JSON/XML deserialization.