Unable to cast object of type ‘Nest.Json.Linq.JObject’ to type ‘Newtonsoft.Json.Linq.JObject’.

0
10
Asked By Keven Krok On

I am trying to parse a response from Elasticsearch. The object is a jObject and I am trying to cast it to this but i get the following exception.

'Unable to cast object of type 'Nest.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JObject'.'

I have the Nest nuget package referenced but when I check the namespace, Im not able to add a using for "Nest.Json.Linq" for some reason. The newtonsoft version is the only one I seem to be able to reference.

0 Answers

There is no answer to this question yet. If you know the answer or can offer some help, please use the form below.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.