You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with a library that is expecting a specific generic structure. I'd like any dictionary to come out as a Dictionary<string, object> and any list to be either a List or List<Dictionary<string, object>> depending on the context. Is there a good extension point for this? I've been looking at examples and I can get the dictionary where I want it, but the list is proving to be a lot harder. Any suggestions?
The text was updated successfully, but these errors were encountered:
Per the yaml spec, there's no guarantee that the key to a value is going to be a string and there's no extension point to set the return type that I am aware of. You would need to build that resulting structure your self. Take a look here for recursively going through object returned by the non generic Deserialize method and pulling keys and values. It might give you a good starting point.
I'm working with a library that is expecting a specific generic structure. I'd like any dictionary to come out as a Dictionary<string, object> and any list to be either a List or List<Dictionary<string, object>> depending on the context. Is there a good extension point for this? I've been looking at examples and I can get the dictionary where I want it, but the list is proving to be a lot harder. Any suggestions?
The text was updated successfully, but these errors were encountered: