public static void Main()
Foo foo = new Foo { Data = new byte[] { 0x48, 0x49, 0x1d, 0x52, 0x53, 0x1d, 0x56, 0x57, 0x00 } };
string json = JsonConvert.SerializeObject(foo);
Foo fah = JsonConvert.DeserializeObject<Foo>(json);
private static void DumpBytes(byte[] b)
for (int i = 0; i < b.Length; i++)
Console.Write(c.ToString("X2") + " ");
public byte[] Data { get; set; }