[PR #4217] [MERGED] Properly handle null structs in json #9955

Closed
opened 2026-02-07 06:11:27 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/4217
Author: @crobibero
Created: 9/27/2020
Status: Merged
Merged: 10/2/2020
Merged by: @Bond-009

Base: masterHead: json-nullable-struct-converter


📝 Commits (1)

  • ac790cd Properly handle null structs in json

📊 Changes

3 files changed (+48 additions, -25 deletions)

View changed files

📝 MediaBrowser.Common/Json/Converters/JsonNullableStructConverter.cs (+20 -19)
MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs (+27 -0)
📝 MediaBrowser.Common/Json/JsonDefaults.cs (+1 -6)

📄 Description

Use factory instead of manually adding
Call JsonSerializer instead of passing serializer through constructor


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/4217 **Author:** [@crobibero](https://github.com/crobibero) **Created:** 9/27/2020 **Status:** ✅ Merged **Merged:** 10/2/2020 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `json-nullable-struct-converter` --- ### 📝 Commits (1) - [`ac790cd`](https://github.com/jellyfin/jellyfin/commit/ac790cd77b81a8235f6d1faf9512c85c96fcd088) Properly handle null structs in json ### 📊 Changes **3 files changed** (+48 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Common/Json/Converters/JsonNullableStructConverter.cs` (+20 -19) ➕ `MediaBrowser.Common/Json/Converters/JsonNullableStructConverterFactory.cs` (+27 -0) 📝 `MediaBrowser.Common/Json/JsonDefaults.cs` (+1 -6) </details> ### 📄 Description Use factory instead of manually adding Call JsonSerializer instead of passing serializer through constructor --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:11:27 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9955