Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

JSON Parse Error

tf05
7 - Meteor

I have an API call set up which appears to be extracting data through the Download, however when I try and JSON Parse the Downloaded Data, I get the below error. I can see the data in the DownloadedData field before it reaches the JSON Parse but only one line is then Parse.

 

ConvError: JSON Parse (5): Error message: The document root must not be followed by other values. at character position: 222

 

I am going to struggle to provide a workflow as the data cannot be shared, however this is the Download and JSON configuration.

 

tf05_0-1648550492149.png

 

tf05_1-1648550504896.png

 

Any general suggestions much appreciated.

 

Thank you

 

2 REPLIES 2
BenoitC
Alteryx
Alteryx

Hello

 

after searching on this issue, seems like the problem is related to parsing your json data before using the JSON tool. Check the below link to further detail:

 

Solved: JSON Question - Designer - Alteryx Community 

Benoit Conley

Sales Engineer
Alteryx, Inc.

danilang
19 - Altair
19 - Altair

Hi @tf05 

 

A few things to look at

-Do you have any errors in the DownloadHeaders field?

-Is the API returning the json with extra characters added at the end?

-Is the API returning multiple json records not properly nested in an array?

-Is the API returning badly formatted JSON? This is the most likely one

 

Dan     

Labels