playGitboy / Json2Csv

Golang实现的一款通用型JSON数据提取CLI工具,支持自动识别JSON数据节点并有序提取为CSV文件,基本涵盖所有JSON结构数据提取。Convenient JSON data extraction tool.
21 stars 3 forks source link

nested json data 数据提取 #3

Open weijing210 opened 1 year ago

weijing210 commented 1 year ago

Hello, thank you so much for this cool tool.

I am beginning user, I had a nested json file, I want to 提取 few columns data, I could pull out the data from the 1st layer without problem, however, I do not know how to pull out the data from nested 2nd or 3rd or more layer, could you please help. Much appreciated.

I attached an example .csv data, the far last column is data I had problem to pull out.

Json2Csv example.json

Following no problem, I could pull out the data "chromosome" and "filters" 2 columns

Json2Csv -k chromosome/filters example.json

example.csv

Thank you so much

playGitboy commented 1 year ago

I don't understand exactly what you're trying to say, please provide a sample json and a csv of what you want the result to be