Home ValueFunction Class
ValueFunction Class
Cancel

ValueFunction Class

Namespace: Json.Path

Inheritance: ValueFunction 🡒 ValueFunctionDefinition 🡒 object

Implemented interfaces:

  • IReflectiveFunctionDefinition
  • IPathFunctionDefinition

Implements the value() function which extracts a single value from a nodelist.

Properties

NameTypeSummary
NamestringGets the function name.

Methods

Evaluate(NodeList nodeList)

Evaluates the function.

Declaration

1
public JsonNode Evaluate(NodeList nodeList)
ParameterTypeDescription
nodeListNodeListA nodelist.

Returns

If the nodelist contains a single node, that node’s value; otherwise null.

Contents