Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

When would the payload value ever not be a JsonElement? #134

Open
grosch opened this issue Jul 11, 2024 · 3 comments
Open

When would the payload value ever not be a JsonElement? #134

grosch opened this issue Jul 11, 2024 · 3 comments
Labels
question Further information is requested

Comments

@grosch
Copy link
Contributor

grosch commented Jul 11, 2024

When I decode the token, I get back a payload that's a Dictionary<string, object>. When would the value ever not be of type JsonElement?

@daviddesmet
Copy link
Owner

With the change from System.Text.Json it seems to be always the case unless you use a custom IJsonSerializer.

@daviddesmet daviddesmet added the question Further information is requested label Jul 15, 2024
@grosch
Copy link
Contributor Author

grosch commented Jul 15, 2024

Can we type it as such then to make things easier?

@daviddesmet
Copy link
Owner

I would have to take a look into in a spare time, but feel free to propose the change in a PR

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants