Skip to content

Make JsonConvertFactory public sealed#10507

Open
QuackCola wants to merge 1 commit intoFacepunch:masterfrom
QuackCola:make-JsonConvertFactory-publicsealed
Open

Make JsonConvertFactory public sealed#10507
QuackCola wants to merge 1 commit intoFacepunch:masterfrom
QuackCola:make-JsonConvertFactory-publicsealed

Conversation

@QuackCola
Copy link
Copy Markdown
Contributor

Summary

This pr simply makes the class JsonConvertFactory in Utility/Json/IJsonConvert.cs public sealed

Motivation & Context

This change is needed so JsonConvertFactory can be added to to your own JsonSerializerOptions. So that you can serialize and deserialize types such as Variant when not using Sandbox.Json.Serialize

Implementation Details

Made the class public sealed so that it can be used externally but not extended.

Checklist

  • Code follows existing style and conventions
  • No unnecessary formatting or unrelated changes
  • Public APIs are documented (if applicable)
  • Unit tests added where applicable and all passing
  • I’m okay with this PR being rejected or requested to change 🙂

@QuackCola QuackCola force-pushed the make-JsonConvertFactory-publicsealed branch from be16496 to 6df2e9d Compare April 16, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant