Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
how do i export json data getting from web api mvc4 to excel sheet using jquery????
Posted

1 solution

I think you have a wider problem than the how , and that is I don't think that you can map all possible Json structures to Excel since Json allows for hierarchical data and excel does not . I.e You cant map objects containing other objects and arrays of objects to a grid layout . If your Json is hierarchical then you can think up your own mapping scheme whereby you code against the one Json object you can display . But that might involve several views , and it would only work against that one object .
I would not consider attempting to use Jquery to pass data into Excel . Even if it were possible it seems a misuse of it ? Personally I would add the ability on the API to export a CSV or similar and then pass those into excel . ( But as mentioned above it may not be possible) .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900