Open reddyrajanala opened 4 years ago
I've looking for the same solution, but it's not easy. It would require a modification of the code because it's hardcoded to instantiate the builtin KeyValueFormatter here :https://github.com/neuecc/Utf8Json/blob/608cf01589cb3feb225a6e51a2324a24466fdaa6/src/Utf8Json/Resolvers/DynamicGenericResolver.cs#L124 I don't think a PR would be enough, as it seems the project is abandoned
//I am unable to serialize List<KVP<string,string>> with kvp names as "key"/"value" //similarly cannot deserialize //See the snippet below ` using System; using Utf8Json; using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using Utf8Json.Resolvers; using Utf8Json.Formatters;
public class Program { public static void Main() {
} `