I want show below jason data in Excel format in react, where 1 object price has 3 values and 2nd have only one price, show price for orange in one cell in 3 rows
let jsonData = [{color:'orange', price:[100,200, 300]}, {color:'red', price:[100]]
Use this link to https://www.npmjs.com/package/pandas-js to solve the problem
Load your json file and there will be function named as toDataFrame() then from dataframe to excel.
Hope this will help you