-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Json to CSV issue 2 #325
Comments
can't reproduce it. here is working sample https://dotnetfiddle.net/ipX7aU Output:
|
@Cinchoo I just showed an example; the actual file is different. I tried what you mentioned, but the CSV file output writes all the data in a single line. Since the JSON file contains a lot of data, I need to write each entry separately one by one. I’ve attached the example file. Can you suggest how to fix this? |
cinchoo etl does the best way possible to convert json to csv. but json is structured file, csv is flat. in order to accomblish the conversion expected way, some custom work is needed. Based on your input, i've compiled sample fiddle https://dotnetfiddle.net/zW9iI2 Expected output will be:
Hope this works. |
Yes @Cinchoo , it works for the Value field, but in the Name field, it's showing empty. I need all the data from the JSON file to be converted into CSV format. |
there was issue pulling those data. applied fix, released ChoETL.Core v1.2.1.68 Here is working fiddle |
I am facing the issue. The field looks like this:
JSON
"extension": [
{
"Test": "value",
"value": [
"0",
"1",
"2"
]
},
{
"Test1": "Test",
"value": "20"
},
{
"Test2": "Test",
"value": "35"
}
]
The values 20 and 35 are missing because in the first object, the value field is a list, while in the subsequent objects, value is not a list. This inconsistency causes the values to be overlooked.
The text was updated successfully, but these errors were encountered: