---
title: "Discussion on \"Reasons and Solutions for Deserialization Failure of Data Persisted in Json while Representing State with Types in C#\" | Hashnode"
description: "Discussion on \"Reasons and Solutions for Deserialization Failure of Data Persisted in Json while Representing State with Types in C#\". \"JsonDerivedType\" is an attribute in C# that can be attached to a parent interface to define which types implement that interface, allowing the state to be represented by types.\nBy using this method, you can define the data type with the original par..."
url: "https://hashnode.com/posts/reasons-and-solutions-for-deserialization-failure-of-data-persisted-in-json-while-representing-state-with-types-in-c/66ae9eebe26a1e274d84ea5b"
---

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

Discussion

# [Reasons and Solutions for Deserialization Failure of Data Persisted in Json while Representing State with Types in C#](https://tomohisa.hashnode.dev/reasons-and-solutions-for-deserialization-failure-of-data-persisted-in-json-while-representing-state-with-types-in-c?utm_source=hashnode&utm_medium=feed)

"JsonDerivedType" is an attribute in C# that can be attached to a parent interface to define which types implement that interface, allowing the state to be represented by types. By using this method, you can define the data type with the original par...

Aug 3, 2024 · 7 min read · tomohisa.hashnode.dev  
Read the article

-   [#json](https://hashnode.com/tag/json)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#serialization](https://hashnode.com/tag/serialization)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#cosmosdb](https://hashnode.com/tag/cosmosdb)
-   [#event-sourcing](https://hashnode.com/tag/event-sourcing)

## Written by

[Tomohisa Takaoka](https://hashnode.com/@tomohisa)

@tomohisa · California, USA

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

Developer of the Sekiban, Event Sourcing and CQRS Framework. CTO of J-Tech Japan, Inc.

CTO of J-Tech Creations, Inc. Recently working on the development of the event sourcing and CQRS framework Sekiban. Enthusiast of DIY keyboards and trackballs.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
