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.Json.
Summary
JSON related cake aliases.
In order to use aliases from this addin, you will need to also reference Newtonsoft.Json as an addin. Here is what including Cake.Json in your script should look like:
#addin package:?Cake.Json
#addin package:?Newtonsoft.Json&version=11.0.2
- Assembly
- Cake
.Json .dll - Namespace
- Cake
.Json - Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type["JsonAliases"]
class Type type-node
Syntax
public static class JsonAliases
Attributes
Type | Description |
---|---|
Cake |
Methods
Name | Value | Summary |
---|---|---|
DeserializeJson |
T |
Deserializes the JSON from a string.
static
|
Deserialize |
T |
Deserializes the JSON from a file.
static
|
ParseJson |
JObject |
Parses the JSON into a JObject.
static
|
ParseJsonFromFile |
JObject |
Parses the file contents into a JObject.
static
|
SerializeJson |
string |
Serializes an object to a JSON string.
static
|
SerializeJsonPretty |
string |
Serializes an object to a pretty JSON string.
static
|
SerializeJsonToFile |
void |
Serializes an object to a JSON file.
static
|
Serialize |
void |
Serializes an object to a pretty JSON file.
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|