Click or drag to resize

JObjectHelper Class

Utility methods for working with JObjects, JArrays and JsPath.
Inheritance Hierarchy
SystemObject
  MFiles.VAF.Configuration.JsonMappingJObjectHelper

Namespace:  MFiles.VAF.Configuration.JsonMapping
Assembly:  MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 2.1.0.1 (2.1.0.1)
Syntax
C#
public class JObjectHelper

The JObjectHelper type exposes the following members.

Constructors
  NameDescription
Public methodJObjectHelper
Initializes a new instance of the JObjectHelper class
Top
Methods
  NameDescription
Public methodEnsureArrayExists
Returns a reference to an array object at the specified property within an object. Creating the array if the property is not yet set. Throws an exception if a non-array value already exists at the property.
Public methodEnsureObjectExists(JArray, Int32)
Returns a reference to an object at the specified index within an array. Creating an object at the specified location if one doesn't already exist there. Throws an exception if a non-object value already exists at the index.
Public methodEnsureObjectExists(JObject, String)
Returns a reference to an object at the specified property within another object. Creating the object if the property is not yet set. Throws an exception if a non-object value already exists at the property.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReplaceValue
Replaces a value in a JSON structure with another value.
Public methodSetArrayItem
Sets a value at a certain index in an array.
Public methodSetOriginalValue
Sets the original (source) value in a location corresponding to the targetValue location in the target structure. This allows for the original value to be preserved when reverting back to the original format for conversions that lose information.
Public methodSetValue
Sets a value in a target JSON structure at the specified path.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryFindOriginalValue
Retrieves an original value that may have been set in a source structure for converted values that might lose some information. Typically the original value would have been saved with the SetOriginalValue(JToken, JToken, String) method.
Public methodTryGetArrayIndex
Attempts to extract an array index value from a json path segment.
Top
See Also