I have a small issue with an string
da:,de:,en:Henkell Brut Vintage,fr:,nl:,sv: I need to map this string to an dictionary, such that the key is what is before : and the value being after :.
I tried to parse it to a Jtoken, so see whether it would be serialized properly but it does not seem to be the case.
var name = Newtonsoft.Json.Linq.JToken.Parse(da:,de:,en:Henkell Brut Vintage,fr:,nl:,sv:); And then extract the desired property using
name.Value<String>("en").ToString()); But i cant seem to parse the string to the Json.Linq.JToken
My other idea was to map it to a dictionary, but that seem to be a bit overkill for this tiny string.
Any simple solution, such that I can extract values for specified key?