Per Malmberg - 159 - Jan 3, 2014

Hello,

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: https://github.com/ServiceStack/ServiceStack.Text/blob/8512792f8e50f129ae07…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