This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Http.
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 | I |
Serializer strategy to use |
Return Value
Type | Description |
---|---|
string | A JSON encoded string, or null if object 'json' is not serializable |