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
This class encodes and decodes JSON strings.
Spec. details, see http://www.json.org/
JSON uses Arrays and Objects. These correspond here to the datatypes JsonArray(IList<object>) and JsonObject(IDictionary<string,object>).
All numbers are parsed to doubles.
- Assembly
- Cake
.Http .dll - Namespace
- Cake
.Http - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["JsonEncoder"]
class Type type-node
Syntax
public static class JsonEncoder
Attributes
Type | Description |
---|---|
Generated |
Properties
Name | Value | Summary |
---|---|---|
Current |
I |
static
|
Data |
Data |
static
|
Poco |
Poco |
static
|
Methods
Name | Value | Summary |
---|---|---|
DeserializeObject |
object |
static
|
DeserializeObject |
object |
static
|
DeserializeObject |
object |
Parses the string json into a value
static
|
DeserializeObject |
T |
static
|
DeserializeObject |
T |
static
|
Escape |
string |
static
|
SerializeObject |
string |
static
|
SerializeObject |
string |
Converts a IDictionary<string,object> / IList<object> object into a JSON string
static
|
TryDeserializeObject |
bool |
Try parsing the json string into a value.
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|