JArrayExtensions Class

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Json.Extensions
Assembly Skybrud.Essentials.dll
Visibility Public
Keywords Static
Inheritance Object

Various extensions methods for JArray that makes manual parsing easier.

public static class JArrayExtensions { }

Methods

Gets an instance of JArray from the item at the specified index in the array.

Gets an array of T from the item at the specified index in the array using the specified delegate func for parsing each item in the array.

Gets an instance of JArray from the token matching the specified path.

Gets an array of T from the from the token matching the specified path in the array using the specified delegate func for parsing each item in the array.

Gets the bool value of the item at the specified index in the array.

Gets the bool value of the token matching the specified path.

Gets the Double value of the item at the specified index in the array.

Gets the Double value of the token matching the specified path.

Gets the GUID value from array at the specified index.

Gets the GUID value of the token matching the specified path, or System.Guid.Empty if path doesn't match a token.

Gets the GUID value from array at the specified index.

Gets the GUID value of the token matching the specified path, or the value of fallback if path doesn't match a token.

Gets the Int16 value of the item at the specified index in the array.

Gets the Int16 value of the token matching the specified path, or 0 if path doesn't match a token.

Gets the int value of the item at the specified index in the array.

Gets the int value of the token matching the specified path, or 0 if path doesn't match a token.

Gets the long value of the item at the specified index in the array.

Gets the long value of the token matching the specified path.

Gets an object from the item at the specified index in the array.

Gets an object from the item at the specified index in the array. If an object is found, it is parsed to the type of T.

Gets an object from the item at the specified index in the array. If an object is found, the object is parsed using the specified delegate func.

Gets an object from token matching the specified path.

Gets an object from token matching the specified path. If an object is found, it is parsed to the type of T.

Gets an object from token matching the specified path. If an object is found, the object is parsed using the specified delegate func.

Gets a string from the item at the specified index in the array.

Gets a string from the token matching the specified path.

Gets the UInt16 value of the item at the specified index in the array.

Gets the UInt16 value of the token matching the specified path, or 0 if path doesn't match a token.

Gets the UInt32 value of the item at the specified index in the array.

Gets the UInt32 value of the token matching the specified path, or 0 if path doesn't match a token.

Gets the UInt64 value of the item at the specified index in the array.

Gets the UInt64 value of the token matching the specified path, or 0 if path doesn't match a token.