Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[Question] What is and how to escape "RepIdx" in .csv file when converting to Json #71
I have to apologize first that this is not an issue but a question and you do a GREAT JOB of this package!
My question is I want to do the same thing with C#, but when read in the first line, I got so many "RepIdx". I searched around but have no clue what it is.
I uploaded my file and tried the conversion in you WebSite, it works like a charm! I tried to debug into the source code, no escaping related to the "RepIdx" kind of string. Could you please provide some hint here?
@martindrapeau Thanks for replying!
This is the the first line of the source csv file I got:
There are so many fields with same name "RepIdx". And this is the result from your tool
Everything works so good with your tool, there is no duplicate key named "RepIdx". I am wondering, how did you get rid of the field "RepIdx"?
Your CSV has duplicated keys
Let me find an automatic solution to this problem.
Ok, the issue is now resolved. Here is the testcase demonstrating the fix. Notice that '__#' is added when duplicate column headers are detected.
Give it another go with your CSV file. Let me know if everything is resolved.