protected static void PrintObject(object obj) { var converter = new ByteArrayAsStringConverter(); Console.WriteLine("Object: {0}", JsonConvert.SerializeObject(obj, converter)); }