BGC Tools
|
Static Public Member Functions | |
static JsonArray | TryGetArray (this JsonObject json, string key) |
Tries to get array and returns an empty array if not found More... | |
static JsonValue | TryGetValue (this JsonObject json, string key) |
Try and get value, if key is not there it adds the key More... | |
static List< int > | JsonArrayToIntList (this JsonArray jsonArray) |
Converts a Json Array to a List of generic type T More... | |
static List< string > | JsonaArrayToStringList (this JsonArray jsonArray) |
static List< float > | JsonArrayToFloatList (this JsonArray jsonArray) |
Converts a Json Array to a List of floats More... | |
static List< T > | JsonArrayToEnumList< T > (this JsonArray jsonArray, EnumSerialization enumSerialization) |
Converts Any Json Array to a List of Enums More... | |
static JsonArray | IntListToJsonArray (this IList< int > list) |
Converts an int list to a Json Array of Int Values More... | |
static JsonArray | FloatListToJsonArray (this IList< float > list) |
Converts a float list to a Json Array of float values More... | |
static JsonArray | AnyListToStringJsonArray< T > (this IList< T > list) |
Converts any list to a json array of string values More... | |
static JsonArray | ConvertToJsonArray< T > (this List< T > list, Func< T, JsonValue > convertToJsonValue) |
Converts any list to a Json Array of user defined values More... | |
static List< T > | JsonArrayToList< T > (this JsonArray jsonArray, Func< JsonValue, T > convertToObj) |
Converts any JsonArray to List of user defined values More... | |
Definition at line 9 of file JsonExtensions.cs.
|
inlinestatic |
Converts any list to a json array of string values
Definition at line 136 of file JsonExtensions.cs.
References LightJson.JsonArray.Add(), and LightJson.JsonArray.Count.
|
inlinestatic |
Converts any list to a Json Array of user defined values
Definition at line 153 of file JsonExtensions.cs.
References LightJson.JsonArray.Add().
|
inlinestatic |
Converts a float list to a Json Array of float values
Definition at line 120 of file JsonExtensions.cs.
References LightJson.JsonArray.Add(), and LightJson.JsonArray.Count.
|
inlinestatic |
Converts an int list to a Json Array of Int Values
Definition at line 104 of file JsonExtensions.cs.
References LightJson.JsonArray.Add(), and LightJson.JsonArray.Count.
|
inlinestatic |
Definition at line 56 of file JsonExtensions.cs.
References LightJson.JsonArray.Count.
|
inlinestatic |
Converts Any Json Array to a List of Enums
Definition at line 88 of file JsonExtensions.cs.
|
inlinestatic |
Converts a Json Array to a List of floats
Definition at line 72 of file JsonExtensions.cs.
References LightJson.JsonArray.Count.
|
inlinestatic |
Converts a Json Array to a List of generic type T
Definition at line 48 of file JsonExtensions.cs.
References LightJson.JsonValue.AsInteger.
|
inlinestatic |
Converts any JsonArray to List of user defined values
Definition at line 169 of file JsonExtensions.cs.
References LightJson.JsonArray.Add().
|
inlinestatic |
Tries to get array and returns an empty array if not found
Definition at line 14 of file JsonExtensions.cs.
|
inlinestatic |
Try and get value, if key is not there it adds the key
Definition at line 32 of file JsonExtensions.cs.
References LightJson.JsonObject.Add(), and LightJson.JsonObject.ContainsKey().