I am attempting to replicate the below JavaScript code using Newtonsoft's parser:
var nav = { container: $('.ux-navigation-control'), manual: true, validate: true };
My attempt to utilize Html.Raw
within Newtonsoft looks like this:
var nav = @(new HtmlString(JsonConvert.SerializeObject(new
{
container = Html.Raw("$('.ux-navigation-control')"),
manual = true,
validate = true
}))) ;
However, instead of the expected expression, it returns an empty object:
var nav = {"container":{},"manual":true,"validate":true} ;
Any assistance would be greatly appreciated.