Search json field

How can i search a field containing a json string with Nest/C# ? The filed is called 'message'

I would like to get all hits where Data.VehicleID = 2

"{"Message":"1 forsøk","Data":{"User":{"DriverID":"0","VehicleID":"2","CentralCode":""},"Booking":{"ID":"0","Text":""},"Sequence":"0","FareAmount":"0","TipsAmount":"0","ExtraAmount":"0","CurrencySymbol":"","Transaction1":"","Transaction2":"","TransactionData":"","MerchantID":"","TerminalID":"","ID":"","Provider":"TPH","Phone":"","Timestamp":"0","Status":"INITIATED","Result":"PENDING"},"Exception":{"Type":"DivideByZeroException","Message":"Forsøkte å dele med null.","Stack":[{"Method":"yy","File":"Form1.cs","Line":"71","Column":"13"},{"Method":"xx","File":"Form1.cs","Line":"65","Column":"13"},{"Method":".ctor","File":"Form1.cs","Line":"40","Column":"17"}]},"System":{"Process":{"Id":33332,"Name":"WindowsFormsApp11"},"Thread":{"Id":1,"Name":"trilili","Culture":"nb-NO"}}"

Regards

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.