Get Value at Path

Modified on Wed, 22 Jun 2022 at 10:26 AM

Get Value at Path


If you know the path you will need to access a value, you can use this component.


Example


In this example, I am expecting the response from the Request to look something like this:


{
  "data": [   
    {
      "name": "Jane",
      "imageUrl: "https://images.dog.ceo//breeds//briard//n02105251_7430.jpg"
    }, 
    {
      "name": "Ozgun", 
      "imageUrl": "https://images.dog.ceo//breeds//shihtzu//n02086240_1779.jpg" 
    }
  ]
}


In this case I know that I only want the first object from the data array so I am setting my path to data.0.imageUrl and passing "https://images.dog.ceo//breeds//briard//n02105251_7430.jpg" on as my source for an image



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article