Method GetJson
GetJson(String, String)
Retrieves the string representation of the JSON value of a corresponding key from the remote service, if one exists.
Declaration
public string GetJson(string key, string defaultValue = "{}")
Parameters
| Type | Name | Description |
|---|---|---|
| String | key | The key identifying the corresponding setting. |
| String | defaultValue | The default value to use if the specified key cannot be found or is unavailable. |
Returns
| Type | Description |
|---|---|
| String | A string representation of the JSON value of a corresponding key from the remote service, if one exists. If one does not exist, the defaultValue is returned ("{}" if none is supplied.) |