using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
internal static void Test()
""paramName"": ""OutputPolyline"",
""dataType"": ""String"",
""value"": ""#{\""hasM\"":true,\""paths\"":[[[135.24,246.13,null],[135.24,246.13,null],[135.24,246.13,null]]]}""
JObject obj = JObject.Parse(json);
JToken token = obj.SelectToken("$.results[?(@.paramName == 'OutputPolyline')]['value']");
Console.WriteLine(token.Path + " -> " + token);
var paths = JToken.Parse(token.ToString().Trim('#')).SelectToken("paths");
Console.WriteLine(paths.Path + " -> " + paths);
public static void Main()
Console.WriteLine("Json.NET version: " + typeof(JsonSerializer).Assembly.FullName);