Per Malmberg - 159 - Jan 3, 2014


Is there a way to make the Json (de)serializer to update existing DTOs instead of creating a new object tree from Json data? If not entire trees, just a single DTO?

Not really, there’s a JsConfig.ModelFactory you can use to control the creation of new instances, an example at:…51c5/tests/ServiceStack.Text.Tests/JsonTests/CustomSerializerTests.cs#L185
Which you could use to re-use instances from a cache.

But there are no APIs to say populate this instance.

Per Malmberg:

Thanks, I’ll look into it