beta
cables is under heavy development.
There might be one or another bug, please let us know about it!

ObjectGetStringByPath Op

Ops.Json.ObjectGetStringByPath


ObjectGetStringByPath
Namespace: Ops.Json

Op author: stephan

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


summary (oneliner)

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:



doc

issues

example patch id

youtube id

caniuse query

collections

related ops

Inputs

Object (Object)

json object


Path (String)

the path (i.e. data.names)


Output path if missing (boolean /Number)

Outputs

Output (String)

the string


Found (boolean Number)

Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save

ObjectGetStringByPath - Example

Open Example In Editor


Patches using ObjectGetStringByPath