using System;
using System.Text.Json;
using System.Linq;
public class Program
{
public static void Main()
var bytes = new byte[] { 220, 230, 240, 22, 23, 24, 26 };
var json = JsonSerializer.Serialize(bytes.Select(b => (int)b));
Console.WriteLine(json);
}