public void SerialzationDictonary() { List<Dog> dogs = new List<Dog>(); Dog testExpando = new Dog { Before = "Before!", After = "After!" }; List<string> keys = new List<string>() {"48001", "48003", "48005", "48007", "48009", "48011", "48013", "48015", "48017", "48019", "48021", "48023"}; testExpando.SetValidationValue("keys", keys); testExpando.SetValidationValue("DecimalPoints", 2); //serialize to string using newtonsoft to memic webapi request var jsonString = NewtonsoftJson.JsonConvert.SerializeObject(testExpando); //deserialize with Json.net to mimick webapi Dog objectToStore = NewtonsoftJson.JsonConvert.DeserializeObject<Dog>(jsonString, _settings); var objectId = SaveToDb(objectToStore); Dog loadedObject; //load the saved object from the db. using (var session1 = _localStore.OpenSession()) { loadedObject = session1.Load<Dog>(objectId); } var loadedObjectJsonString = RavenJson.JsonConvert.SerializeObject(testExpando); var dog = 2; }