ASP.NET Core MVC Controls | ComponentOne
C1.AspNetCore.Mvc Assembly / C1.Web.Mvc.Serialization Namespace / JsonConvertHelper Class / C1Json Method / C1Json(Controller,Object,Boolean) Method
The specified controller.
The object to serialize.
A System.Boolean value decides whether to use camel case to serialize the data.

In This Topic
    C1Json(Controller,Object,Boolean) Method
    In This Topic
    Creates a Microsoft.AspNetCore.Mvc.JsonResult object that serializes the specified data object to JSON.
    Syntax
    'Declaration
     
    Public Overloads Shared Function C1Json( _
       ByVal controller As Controller, _
       ByVal data As Object, _
       Optional ByVal useCamelCasePropertyName As Boolean _
    ) As JsonResult
    public static JsonResult C1Json( 
       Controller controller,
       object data,
       bool useCamelCasePropertyName
    )

    Parameters

    controller
    The specified controller.
    data
    The object to serialize.
    useCamelCasePropertyName
    A System.Boolean value decides whether to use camel case to serialize the data.

    Return Value

    The created Microsoft.AspNetCore.Mvc.JsonResult that serializes the specified data to JSON format for the response.
    See Also