Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

Get te data from an array in JSON

(0) ShareShare
ReportReport
Posted on by 2

Hey guys,

 

Can someone help me out?. Im trying to parse a Json that looks like this:

 

{
Campos: [
"Prefixo",
"DataHora",
"GPS_Latitude",
"GPS_Longitude",
"GPS_Direcao",
"Linha",
"GTFS_Sentido",
"Velocidade",
"IMEI"
],
Dados: [
[
"442526",
"25/06/2020 14:06:31",
-15.83956,
-48.128787,
0,
"361.1",
1,
0,
"358197040754337"
],
[
"444731",
"25/06/2020 14:07:08",
-15.786168,
-47.943036,
67,
"0.383",
0,
56,
"358197040769939"
],

 

The problem is, i need to separate all values of every array to use in a report later on. As the data dont have a label, im not sure how to do it.

 

Does someone have any idea on how to work on this?

 

Thank you in advance.

  • William_Lima Profile Picture
    2 on at
    Re: Get te data from an array in JSON

    Hey Doug,

     

    Thanks for responding, but my problema is really bigger. My request now has 500 arrays in "DADOS", and im not sure how to do the steps you mentioned it.

     

    Could you help me all the way?

     

    Thanks.

  • Doug_Apicella Profile Picture
    45 on at
    Re: Get te data from an array in JSON

    @William_Lima  You can use multiple Parse JSON actions to parse each section so one ParseJSON would be the Campos element and the next would be Dados and so on. Odd that your JSON doesn't have any labels as that would be the easiest option to referencing them once you parse each section. Once you parse the JSON section you can do a Compose to split the values:

     

    split(body('NameofParseJsonActionHere')',')
     
    That gets you about half way as you will probably then need to do a count of how many values you get out of it.
    You can then reference each item later in your flow: outputs('compose')?[0], where [0] is the index position of the element we want to get.
     
     
    Hope that helps!
     
    Doug

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Using Connectors

#1
DBO_DV Profile Picture

DBO_DV 25 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

#3
lbendlin Profile Picture

lbendlin 7 Super User 2025 Season 1

Overall leaderboard

Featured topics