I have a simple string from webSockets. And i stuck on jPath for SelectTokens() method. Is there any path which can help me grab $.Type only if it is equal to 'Ping'?
var str= @"{""Type"":""Ping""}";
var token = JObject.Parse(str).SelectToken("$.Type =='Ping'");
This is c# app and standard Json.Net lib is used.