JsonParserIter.nextNamedNumber

Iterates over the json string looking for the named element and returning the value of the following element if it is a number. If the value is not a number the search continues.

Note that the search takes place from the current iteration position, and all iterations are cumulative. The iteration position is reset using the 'reset' method (in super).

class JsonParserIter(bool AllowNaN = false)
T
nextNamedNumber
(
T
)
(,
out bool found
)

Parameters

T

numerical type to return

name cstring

name to search for

found bool

output value, set to true if named value was found

Return Value

Type: T

numerical value of element after the named element

Throws

if the value is not valid number

Meta