✅ Serializing a dictonary without path in root object
Hello, I'm trying to create a DTO for an API, where the request takes a dictornary of values, but the "keys" are part of the root object, and not under a path.
I'm therefor not sure how I can create a C# DTO, where the json output will like the example.
If I serilize the below, the language codes will be
languageMap.en
etc, which does not match the request object
Is there a solution on how to serilize the dictionary into the root object, without ot being under the path?1 Reply
Thanks, exactly was I was looking for!