Pass Data to RenderRequest as JSON
-
Just wondering if there's a way to pass data into a RenderRequest as a JSON string rather than an object. I am open to rendering pdfs a different way in .NET but I am avoiding making and creating classes use as a data model in my app.
-
RenderRequest CustomRenderRequest = new RenderRequest() { Template = new Template() { Content = "Handlebars Content", Engine = Engine.Handlebars, Recipe = Recipe.ChromePdf, Helpers = "Helpers Content" }, Data = <<JSON Data>> }
The Data has to be an object whereas I just want to pass through plain JSON to Handlebars.