web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to parse JSON prop...
Power Apps
Unanswered

How to parse JSON properly?

(0) ShareShare
ReportReport
Posted on by 20
Hello together, 
 
I am currently working on a PowerAPP that requries Parsing of JSON-Arrays. This is way harder than I thought. Maybe I do something wrong and you could give me a pointer in the right direction. 
 
Lets talk about the Situation: 
I have a SharePoint List with only one Column. That Columns contains the JSON-Array which is needed to be parsed. The important point is now that I need to read back the JSON-String into an Table. Because I want to display the results in a gallery. 
 
Title Result
Currently not used but later for Filtering JSON-Array
 
Each Line contains one JSON-Array with the same structure but individual Data: 
{
    "Data": [
        {
            "Choices": "YES;NO;MAYBE",
            "ColumnType": "Form 1",
            "Data": "YES",
            "FormName": "Form 1",
            "QuestionNR": 1,
            "Requried": "Yes",
            "Title": "Would you recommend this Pizza?"
        },
        {
            "Choices": "YES;NO;MAYBE",
            "ColumnType": "Choices",
            "Data": "MAYBE",
            "FormName": "Form 1",
            "QuestionNR": 3,
            "Requried": "Yes",
            "Title": "Would you recommend this Pizza?"
        }
    ]
}
 
Now the Idea is to read back the Information into a Collection / Table to display the Data in a Gallery. Each Entry in the Sharepoint-List where the JSON-Array is stored should be one Entry in the Gallery. 
 
Summary:
  • Reading JSON String
  • Parsing JSON 
  • Create Table based on Parsed JSON
Would be great if you can support me here. I tried several ways but for me its not possible to get the Data back. 
Categories:
I have the same question (0)
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at
     
     
    There it is explained pretty easily. 
     
    If this solvede your porblem please accept it as solution so others can find it as well. 
    If it helped in any other way consider liking it so we can keep supporting eachother. 
  • PowerAppBuilder24 Profile Picture
    20 on at
    Hey @DBO_DV
     
    thank you for the Link. The Problem is that I dont wanna click on a extra button. The Gallery should be able to display some Info directly - without pressing the "View" icon... 
     
    The Link works but it assumes that you need to click on the button. I need that without the click.. Do you know a good way to achieve this? 
     
    Best regards 
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at
     
    When do you load the data into your app? Directly on start?
    you could put this onStart of the app or when you Navigate to this screen. 
     
    If this solvede your porblem please accept it as solution so others can find it as well. 
    If it helped in any other way consider liking it so we can keep supporting eachother.  
  • PowerAppBuilder24 Profile Picture
    20 on at
    Hey @DBO_DV
     
    currently the Data is loaded in the Gallery if Screen is visible (default PowerAPPs behaviour). The problem is if I dont use a gallery I am not able to use the elegant Way of ThisItem.XYZ. 
     
    If I remember correctly - I tried that with another forall-Loop. Do you have an good Way of doing that? 
     
    As far as I know it should look like this: 
    ForAll Sharepoint-Lists entries: 
        ForAll JSON-Array Elements:
           ParseJSON()...
     
    Maybe you could give me some hints - I highly appreciate it! 
     
  • Suggested answer
    Daniel Bocklandt Profile Picture
    5,099 Super User 2025 Season 2 on at
    If you want to have everything at once you could out it in the OnStart property off the app. 
    This will make the loading time a bit longer
     
    Clear(colNewTable);
    ForAll(Datasource As X,
      Collect(colNewTable, 
        ForAll(Table(ParseJSON(X.Result).Data),
          {
            Choices: Split(Text(Value.Choices),","),
            ColumnType: Text(Value.ColumnType),
            Data: Text(Value.Data),
            FormName: Text(Value.FormName),
            QuestionNR: Value(Value.QuestionNR),
            Requried: Text(Value.Requried),
            Title: Text(Value.Title),
            FilterID: X.Title
          }
        )
      )
    )
    If this solvede your porblem please accept it as solution so others can find it as well. 
    If it helped in any other way consider liking it so we can keep supporting eachother. 
  • PowerAppBuilder24 Profile Picture
    20 on at
    Hey @DBO_DV
     
    this is working fine. Thank you very much.. I made small changes (removing the .Data). But now it works fine. This app is only for small Data so I can forget about the loading speed. 
     
    This will help me also in Future for parsing JSON... Now I understood the concept - thank you. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard