Custom JsonConverter for Dictionary<string. object> #97481
Answered
by
WenningQiu
WenningQiu
asked this question in
General
-
I am trying to write a JsonConverter for the interface type below:
I am running into an issue in Write() method - since the values in IAmbientData dictionary can be of arbitrary types, how do I properly invoke the Write() method on the retrieved converter object since Write() is not defined on the base JsonConverter class?
|
Beta Was this translation helpful? Give feedback.
Answered by
WenningQiu
Jan 24, 2024
Replies: 1 comment
-
Hmm, this code seems to work:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
eiriktsarpalis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm, this code seems to work: