public void DeserializeAndFlattenWorks()
        {
            DirectoryInfo testDataDir = CommonTestHelpers.FindTestDataDirectory();

            IJsonSerializer serializer = new SystemTextJsonSerializer();

            foreach (var file in testDataDir.EnumerateFiles("*.json"))
            {
                string json = File.ReadAllText(file.FullName);
                List <KeyValuePair <string, object> > result = serializer.DeserializeAndFlatten(json).ToList();
            }
        }
 public void DeserializeAndFlattenDoesNotThrowExceptionForNullOrInvalidJson(string json)
 {
     IJsonSerializer serializer = new SystemTextJsonSerializer();
     List <KeyValuePair <string, object> > result = serializer.DeserializeAndFlatten(json).ToList();
 }