✅ 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
Is there a solution on how to serilize the dictionary into the root object, without ot being under the 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 objectIs there a solution on how to serilize the dictionary into the root object, without ot being under the path?