Method GetStringList
GetStringList(Dictionary<string, object>, string)
Get the list of strings in the JSON dictionary.
Declaration
public static List<string> GetStringList(this Dictionary<string, object> dic, string key)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, object> | dic | The JSON in dictionary representations. |
string | key | The Key to get the list of strings from in the JSON dictionary. |
Returns
Type | Description |
---|---|
List<string> | The list of strings from the JSON dictionary or an empty list of strings if the key was not found in the JSON dictionary |