Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sebastianslz
Frequent Visitor

How to convert JSON response to tables

I am the task of consuming from a webservice some data by means of REST, for the consumption of data from Power BI I have used as a source a blank query where later I have added in the advanced editor the following query:
 
let

    url = "http://*********",

    headers= [#"Content-Type"="application/json"],

    postData = Text.ToBinary("{""token"":""*************""}"),

    response = Web.Contents(

        url,

        [

            Headers = headers,

            Content = postData          

        ]

    ),

    jsonResponse = Json.Document(response)

in

    jsonResponse
sebastianslz_0-1655253759399.png

 


As
an answer I have clearly obtained a JSON file which is composed as follows:
{'result':'1',

'message':'Successful Operation',

'data':[

{'idActivity':'1001',

'organization':'ABC-001' ,

'date':'6/10/2022 2:34:04 PM',

'lat':'57.3497300',

'lng':'-90.3929000',

'status':'0',

'company':'382',

'tag':'0'},

{'idActivity':'1002',

'organization':'DEF-002',

'date':'6/10/2022 2:21:15 PM',

'lat':'83.6718200',

'lng':'-23.3464000',

'status':'0',

'company':'932',

'tag':'0'}]}
I would like to know if there is a way to convert this JSON file to tables and then be able to represent the information in power bi visuals? 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sebastianslz ,

 

I think you may refer to blogs about how to convert json to table in Power BI Desktop to learn more details.

For reference:

Convert Data from Power BI JSON to Table in 10 Easy Steps

Specifying JSON Query in Power Query – Example Statistics Sweden

Loading a json file into Power Query

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @sebastianslz ,

 

I think you may refer to blogs about how to convert json to table in Power BI Desktop to learn more details.

For reference:

Convert Data from Power BI JSON to Table in 10 Easy Steps

Specifying JSON Query in Power Query – Example Statistics Sweden

Loading a json file into Power Query

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors