Hey guys, I have a Json which can have a certain k...
# serialization
s
Hey guys, I have a Json which can have a certain key that varies in name but I cant seem to find out how to do this.. any ideas? I really just need the value inside it..
d
Do you know the range of names?
s
yes
it's like 8 different names
d
Are you trying to deserialize this into an object or do you just want to extract this value from a json string?
s
I'm deserializing into an object
d
The only way to do this is to declare a property for each possible name and make them optional.
You could also make a custom serializer.