Get nested value from object

Hi guys. So I am making a HTTP simple request and one of the results is this

data: {"subscribers":[{"uid":"62e30b27bd607","list_uid":"62e3097e5b835","email":"lead.test@example.com","status":"subscribed","source":"api","ip_address":"54.161.178.114","NAME":"Lead","PHONE":"48999476359","PLACE":null,"SOURCE2":"Painel Gestor"}]}

image

I need to get subscriber.uid

How to do it?

Thanks

Hey!

You can use ParseJson or Create JSON.

2 Likes

@Talles_Amadeu1

WeMake is correct. The parse JSON module is the “normal” way to parse a JSON string.

You could also use also use a text parser module or replace() function to extract the element you need.

However, because this is coming as a http request response, the simplest way is is to simply turn on “parse response” in the http module:


Jim - The Monday Man (YouTube Channel) Our latest vid: Reading REALLY Large monday Boards
What is Make & How can it help you with monday?
We Create Custom Solutions - Your Make or Ours
Schedule a 1-on-1 Tutorial Session (for monday, Make or “Rocket Science”)

2 Likes

Thanks! I didn’t know there was an action like this. You’ve just saved me a lot of manual work hahaha.

2 Likes