Skip to content
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

Two arrays in JSON , one array is ignored when converted to CSV #22

Open
kapoorruchi opened this issue Jun 12, 2017 · 7 comments
Open
Assignees

Comments

@kapoorruchi
Copy link

kapoorruchi commented Jun 12, 2017

Please find the below code and respective json and csv files. Second array - applied_aspects(outside suggestions array) is not read correctly.

Files.zip

package JsonToCsv;

import com.github.opendevl.JFlat;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

public class JSONToCSV {
public static void main(String args[]){
try {
String str = new String(Files.readAllBytes(Paths.get("C:/Users/ruchiwadhwa/Desktop/updated-JSON.json")));

        `JFlat flatMe = new JFlat(str);`

        `List<Object[]> json2csv = flatMe.json2Sheet().getJsonAsSheet();`

        `flatMe.write2csv("C:/Users/ruchiwadhwa/Desktop/updated-CSV.csv");`
    `}`
    `catch(Exception e){`
        `System.out.println(e.getMessage());`
    `}`
`}`

}

Please help, it is quite urgent.

@opendevl opendevl self-assigned this Jun 13, 2017
@kapoorruchi
Copy link
Author

Any updates on this issue.

@curious95
Copy link
Collaborator

@kapoorruchi we are looking into it.

@kapoorruchi
Copy link
Author

Thanks.

@kapoorruchi
Copy link
Author

Any updates?

@opendevl
Copy link
Owner

@kapoorruchi we are still on it

@opendevl
Copy link
Owner

@kapoorruchi , sorry for late reply. If you want a quick fix then clone the project and comment out lines 346 - 348 in JFlat.java. we are working to have a more stable release.

@kapoorruchi
Copy link
Author

kapoorruchi commented Jun 25, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants