{"id":2671,"date":"2022-12-02T16:07:37","date_gmt":"2022-12-02T16:07:37","guid":{"rendered":"https:\/\/andyjohnson.uk\/blog\/?p=2671"},"modified":"2022-12-02T16:07:40","modified_gmt":"2022-12-02T16:07:40","slug":"slotd-serialise-deserialise-is-copy","status":"publish","type":"post","link":"https:\/\/andyjohnson.uk\/blog\/2022\/12\/02\/slotd-serialise-deserialise-is-copy\/","title":{"rendered":"SLotD: Serialise\/Deserialise is Copy"},"content":{"rendered":"\n<p><em>Software Lesson of the Day for 2\/12\/2022<\/em>. Rather than waste all that time writing a perfect universal .net object copy library that copes with every possible variation of nested reference types, value types, fields, properties, statics, and twenty-plus years of special cases and regret and technical debt baked into the framework&#8230; just serialise your damn source object to json and de-serialise it back out again. And then be on your way.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Software Lesson of the Day for 2\/12\/2022. Rather than waste all that time writing a perfect universal .net object copy library that copes with every possible variation of nested reference types, value types, fields, properties, statics, and twenty-plus years of special cases and regret and technical debt baked into the framework&#8230; just serialise your damn &hellip; <a href=\"https:\/\/andyjohnson.uk\/blog\/2022\/12\/02\/slotd-serialise-deserialise-is-copy\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SLotD: Serialise\/Deserialise is Copy&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42],"class_list":["post-2671","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-software"],"_links":{"self":[{"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/posts\/2671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/comments?post=2671"}],"version-history":[{"count":1,"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/posts\/2671\/revisions"}],"predecessor-version":[{"id":2672,"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/posts\/2671\/revisions\/2672"}],"wp:attachment":[{"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/media?parent=2671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/categories?post=2671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andyjohnson.uk\/blog\/wp-json\/wp\/v2\/tags?post=2671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}