JsonEncoder.

SerializeObject(object, IJsonSerializerStrategy) Method

Summary

Converts a IDictionary<string,object> / IList<object> object into a JSON string
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
JsonEncoder

Syntax

public static string SerializeObject(object json, IJsonSerializerStrategy jsonSerializerStrategy)

Parameters

Name Type Description
json object A IDictionary<string,object> / IList<object>
jsonSerializerStrategy IJsonSerializerStrategy Serializer strategy to use

Return Value

Type Description
string A JSON encoded string, or null if object 'json' is not serializable