ObjectGetStringByPath Op

ObjectGetStringByPath

Finds a string at a position in an object defined by path


useful when working with nested data structures.

the path defines the way to the string. the stringwill be returned

given an object like this:

{
    "data": { "names": [ "alyx","gordon","eli","g-man"] }
}

a path of data.names.1 will return gordon:


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


INPUT PORTS


Object (Object)

json object

Path (String)

the path (i.e. data.names)

Output path if missing (Number: boolean)

OUTPUT PORTS


Output (String)

the string

Found (booleanNumber)

 

Patches using ObjectGetStringByPath

  • Examples
  • Public
  • My Patches

Changelog


improvementwrong path is not an error anymore, but a warninguser avatarpandur - 2025-01-14 09:31
improvementchange errorlevels, show hint when no path provideduser avatarstephan - 2025-01-14 11:34
improvementshow full path in extended titleuser avatarstephan - 2025-05-21 14:04