Shopify / shopify_transporter

The Transporter tool allows you to convert data from a third-party platform into a format that can be imported into Shopify.
MIT License
98 stars 43 forks source link

If there is a problem with the extraction, an extra comma is printed in the extracted json file #134

Closed surajreddy closed 5 years ago

surajreddy commented 5 years ago

Problem:

If an export is incomplete because of a problem, the last JSON object has an extra column at the end:

  },

]

This is causing issues with the conversion step as this file cannot be read.

surajreddy commented 5 years ago

I looked through the code, and this shouldn't happen. The , is only printed if we can successfully print an object after it.