Oct-23-2017, 07:57 AM
Hi Guys,
I'm really new to python and just starting studying the basics of it. So please forgive me if I'm abit slow in understanding :)
So here is my issue, I have been trying to write a json file using python where the data comes from a API from our vendor. My issue is every time I append it, the file becomes an invalid json file.Using the json viewer, below is a sample of the json file. The API will only allow me to download max 100 data and then I need to use pagination to extract all data from the API. Hope someone can help me with it :)
{}-metadata
[]interactiondata
{}0
{}info
{}sdes
{}surveys
{}campaign
{}linescores
{}transcripts
{}visitorinfo
{}1
{}2
{}3
I'm really new to python and just starting studying the basics of it. So please forgive me if I'm abit slow in understanding :)
So here is my issue, I have been trying to write a json file using python where the data comes from a API from our vendor. My issue is every time I append it, the file becomes an invalid json file.Using the json viewer, below is a sample of the json file. The API will only allow me to download max 100 data and then I need to use pagination to extract all data from the API. Hope someone can help me with it :)
{}-metadata
[]interactiondata
{}0
{}info
{}sdes
{}surveys
{}campaign
{}linescores
{}transcripts
{}visitorinfo
{}1
{}2
{}3