ASP.NET Core MVC Controls | ComponentOne
C1.AspNetCore.Mvc Assembly / C1.JsonNet Namespace / JsonHelper Class / SerializeObject Method / SerializeObject(Object,JsonSetting) Method
The object to serialize.
The JsonSetting used to serialize the object. If this is null, default serialization settings will be used.

In This Topic
    SerializeObject(Object,JsonSetting) Method
    In This Topic
    Serializes the specified object to a JSON string using JsonSetting.
    Syntax
    'Declaration
     
    Public Overloads Shared Function SerializeObject( _
       ByVal obj As Object, _
       Optional ByVal js As JsonSetting _
    ) As String
    public static string SerializeObject( 
       object obj,
       JsonSetting js
    )

    Parameters

    obj
    The object to serialize.
    js
    The JsonSetting used to serialize the object. If this is null, default serialization settings will be used.

    Return Value

    A JSON string representation of the object.
    See Also