ObjectGetNumberByPath Op

ObjectGetNumberByPath

finds a number at a position in an object defined by path


useful when working with nested data structures.

the path defines the way to the number. the number will be returned

given an object like this:

{
    "data": { "numbers": [ 1,2,3,4,5] }
}

a path of data.numbers.1 will return 2:


Full Name
  • Ops.Data.JsonPath.ObjectGetNumberByPath
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorgithubMaintained by Team


INPUT PORTS


Object (Object)

json object

Path (String)

the past (i.e. person.age)

OUTPUT PORTS


Output (Number)

the number

Found (booleanNumber)

 

Patches using ObjectGetNumberByPath

  • Examples
  • Public
  • My Patches

Changelog


improvementwrong path is not an error anymore, but a warninguser avatarpandur - 2025-01-14 09:30
improvementchange errorlevels, show hint when no path provideduser avatarstephan - 2025-01-14 11:34
improvementchange "found" port to boolNum typeuser avatarstephan - 2025-03-07 14:39