'Declaration
<System.Runtime.CompilerServices.ExtensionAttribute()> Public Overloads Shared Function C1Json( _ ByVal controller As Microsoft.AspNetCore.Mvc.Controller, _ ByVal data As System.Object, _ Optional ByVal useCamelCasePropertyName As System.Boolean _ ) As Microsoft.AspNetCore.Mvc.JsonResult
'Usage
Dim controller As Microsoft.AspNetCore.Mvc.Controller Dim data As System.Object Dim useCamelCasePropertyName As System.Boolean Dim value As Microsoft.AspNetCore.Mvc.JsonResult value = JsonConvertHelper.C1Json(controller, data, useCamelCasePropertyName)
[System.Runtime.CompilerServices.Extension()] public static Microsoft.AspNetCore.Mvc.JsonResult C1Json( Microsoft.AspNetCore.Mvc.Controller controller, System.object data, System.bool useCamelCasePropertyName )
public function C1Json( controller: Microsoft.AspNetCore.Mvc.Controller; data: System.TObject; useCamelCasePropertyName: System.Boolean ): Microsoft.AspNetCore.Mvc.JsonResult; static;
System.Runtime.CompilerServices.ExtensionAttribute() public static function C1Json( controller : Microsoft.AspNetCore.Mvc.Controller, data : System.Object, useCamelCasePropertyName : System.boolean ) : Microsoft.AspNetCore.Mvc.JsonResult;
[System.Runtime.CompilerServices.Extension()] public: static Microsoft.AspNetCore.Mvc.JsonResult* C1Json( Microsoft.AspNetCore.Mvc.Controller* controller, System.Object* data, System.bool useCamelCasePropertyName )
[System.Runtime.CompilerServices.Extension()] public: static Microsoft.AspNetCore.Mvc.JsonResult^ C1Json( Microsoft.AspNetCore.Mvc.Controller^ controller, System.Object^ data, System.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.