---
title: "Discussion on \"Obfuscating a type you serialize with System.Text.Json: [JsonPropertyName] is the contract, the renamed property is not\" | Hashnode"
description: "Discussion on \"Obfuscating a type you serialize with System.Text.Json: [JsonPropertyName] is the contract, the renamed property is not\". Here is a type that works perfectly until the day you obfuscate it:\npublic sealed class Order\n{\n    public string Customer { get; set; } = \"\";\n    public decimal Total { get; set; }\n    public DateTim"
url: "https://hashnode.com/posts/obfuscating-a-type-you-serialize-with-systemtextjson-jsonpropertyname-is-the-contract-the-renamed-pr/6af3288774474d83e177102d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Obfuscating a type you serialize with System.Text.Json: \[JsonPropertyName\] is the contract, the renamed property is not](https://delta1labs.hashnode.dev/obfuscating-a-type-you-serialize-with-systemtextjson-jsonpropertyname-is-the-contract-the-renamed-pr?utm_source=hashnode&utm_medium=feed)

Here is a type that works perfectly until the day you obfuscate it: public sealed class Order { public string Customer { get; set; } = ""; public decimal Total { get; set; } public DateTim

1d ago · 9 min read · delta1labs.hashnode.dev  
Read the article

-   [#nebulanet](https://hashnode.com/tag/nebulanet)
-   [#obfuscation](https://hashnode.com/tag/obfuscation)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#deepdive](https://hashnode.com/tag/deepdive)

## Written by

[Zero Heartbeat](https://hashnode.com/@clustron)

@clustron

  
[View profile](https://hashnode.com/@clustron)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
