Imports System.Collections.Generic
Dim roots As List(Of Root) = JsonConvert.DeserializeObject(Of List(Of Root))(json)
Dim result = roots.GroupBy(Function(x) x.Name).Select(
Key.Data = If(g.First().LastestValue = g.Last().LastestValue, g.Last(), Nothing)
}).Select(Function(x) x.Data).Where(Function(x) x IsNot Nothing).ToList()
Console.WriteLine(JsonConvert.SerializeObject(result, Formatting.Indented))
Public Property Id As Integer
Public Property Name As String
Public Property Group As Integer
Public Property OldValue As Integer
Public Property LastestValue As Integer