using System.Collections.Generic;
using System.Text.Json.Serialization;
[JsonPropertyName("value")]
public List<List<object>> Value { get; set; }
public double Timestamp { get; set; }
public string Value { get; set; }
public static void Main()
RootObject rootObject = JsonSerializer.Deserialize<RootObject>(jsonString);
List<DataPoint> dataPoints = new List<DataPoint>();
foreach (var itemList in rootObject.Value)
Console.WriteLine(itemList.Count);
if (itemList.Count == 2 && itemList[0] is JsonElement timestampElement && itemList[1] is JsonElement valueElement)
double timestamp = timestampElement.GetDouble();
string value = valueElement.GetString();
dataPoints.Add(new DataPoint { Timestamp = timestamp, Value = value });
foreach (var dataPoint in dataPoints)
Console.WriteLine($"Timestamp: {dataPoint.Timestamp}, Value: {dataPoint.Value}");