I would need more context, but not sure that I like it. Attaching arbitrary properties to objects tends to be difficult debug, and you won’t get any IDE help for those properties. Also note that data classes and the
copy
function found in data classes would serve the same role as
.update
without the cost of using JSON, assuming that you don’t need to update in place, and don’t need to add new properties.