JsonVariables.ToJsonHtmlString

Serialization helper that can be used to easily embed JSON values into Razor pages. Returns an HTML string that doesn't require @Html.Raw()

public static HtmlString ToJsonHtmlString(object val)

Return Value

JSON string that is not reencoded by Razor

Parameters

val
value or object to serialize

Overloads:


See also:

Class JsonVariables

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic