JObjectExtensions 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 JObject that makes manual parsing easier.

public static class JObjectExtensions { }

Methods

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

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

Gets the items of the JArray from the token matching the specfied path.

Gets the items of the JArray from the token matching the specfied path.

Gets the items of the JArray from the token matching the specfied path.

Gets the items of the JArray from the token matching the specfied path.

Gets the items of the JArray from the token matching the specfied path.

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

Gets the bool value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

Gets an instance of DateTime from the value of the token matching the specified path.

Gets an instance of DateTime from the value of the token matching the specified path.

Gets an instance of DateTime from the value of the token matching the specified path.

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

Gets the Double value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

Gets an array of Double from the token matching the specified path.

Gets an enum of type T from the token matching the specified path.

Gets an enum of type T from the token matching the specified path.

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

Gets the Single value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

Gets an array of Single from the token matching the specified path.

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

Gets the value of the token matching the specified path, or fallback if path doesn't match a token. If the property value doesn't match a valid GUID, the value of fallback will be returned as well.

Gets an array of Guid from the token matching the specified path.

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

Gets the Int16 value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

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

Gets the int value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

Gets an array of int from the token matching the specified path.

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

Gets the long value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

Gets an array of long from the token matching the specified path.

Gets an object from a token matching the specified path.

Gets an object from a token matching the specified path.

Gets an object from a token matching the specified path.

Gets an array of JObject from the token matching the specified path.

Gets an array of T from the token matching the specified path.

Gets an array of T from the token matching the specified path.

Gets an array of Single from the token matching the specified path.

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

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

Gets an array of String from the token matching the specified path.

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

Gets the UInt16 value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

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

Gets the UInt32 value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

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

Gets the UInt64 value of the token matching the specified path and parses it into an instance of T, or the default value of T if path doesn't match a token.

Gets whether a token matching the specified path exists and isn't null (or an empty string).