Skip to content

Conversation

@kzu
Copy link
Member

@kzu kzu commented Sep 17, 2025

Allow inspecting the originating JSON for a message

Introduce non-serializable keys in the additional properties dictionary for messages (those that start with __) so that apps can leverage them for internal-only, transient data that doesn't need serialization at all.

Then right after deserializing a message, place the originating JSON as-is in that dictionary as __json and expose as internal property for debugging purposes. Note we explicitly don't make this part of the public API (for now?).

Introduce non-serializable keys in the additional properties dictionary for messages (those that start with `__`) so that apps can leverage them for internal-only, transient data that doesn't need serialization at all.

Then right after deserializing a message, place the originating JSON as-is in that dictionary as `__json` and expose as internal property for debugging purposes. Note we explicitly don't make this part of the public API (for now?).
@kzu kzu enabled auto-merge (rebase) September 17, 2025 20:08
@kzu
Copy link
Member Author

kzu commented Sep 17, 2025

70 passed 70 passed 20 skipped

🧪 Details on Ubuntu 24.04.3 LTS

from dotnet-retest v0.7.2 on .NET 9.0.9 with 💜 by @devlooped

@kzu kzu merged commit cb266da into main Sep 17, 2025
7 checks passed
@kzu kzu deleted the dev/rawjson branch September 17, 2025 20:11
@devlooped devlooped locked and limited conversation to collaborators Oct 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants