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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
zakk92
Frequent Visitor

JSON Parsing Issue

Hi,


I'm trying to parse a JSON field in power query, but I get the error:

 

DataFormat.Error: We found extra characters at the end of JSON input.
Details:
Value=]
Position=1544

 

The confusing part is that the extra character is the square bracket which should close off the JSON. I have checked and its not that there are 2 square brackets at the end, looking at the JSON, it actually finishes as shown below:

 

{"name":"General Operator (EW)"}]

 

This looks normal to me, but I was wondering if anyone else has faced a similar issue? I have seen similar topics but the issue seemed to be that they lacked the square brackets entirely. Any advice here would be greatly appreciated. 

 

Thanks,

Zakk

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @zakk92 ,

If it is the end of your json file, the end character of it should be } instead of ].

] is combine with [ to use inside {} as the json content, like:

{
    xxx: [
        {
            xxx: xxx,
            "xxx": [
                {
                    "xxx": "xxx"
                },
                {
                    "xxx": "xxx"
                }
            ]
        },
        {
            "xxx": "xxx",
            "xxx": [
                {
                    "xxx": "xxx"
                },
                {
                    "xxx": "xxx"
                }
            ]
        }
    ]
}

 

Best Regards,
Community Support Team _ Yingjie Li
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

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Hi,

 

I am getting same kind of error. Could you please help me understand it?

 

DataFormat.Error: We found extra characters at the end of the JSON input.
Details:
Value=<
Position=2

 

I checked. There's no < character in my query.

 

Thanks.

v-yingjl
Community Support
Community Support

Hi @zakk92 ,

If it is the end of your json file, the end character of it should be } instead of ].

] is combine with [ to use inside {} as the json content, like:

{
    xxx: [
        {
            xxx: xxx,
            "xxx": [
                {
                    "xxx": "xxx"
                },
                {
                    "xxx": "xxx"
                }
            ]
        },
        {
            "xxx": "xxx",
            "xxx": [
                {
                    "xxx": "xxx"
                },
                {
                    "xxx": "xxx"
                }
            ]
        }
    ]
}

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Is that the very end of the JSON object, in which case you'd need ]}   ?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.