How do I convert json payload to csv, excel format on edge?
Please share any examples on github…
Requirement: APIs output format can be of: XML, Excel, CSV and JSON
If requested format is XML then proxy will return XML
Otherwise
it will return JSON payload for { CSV, Excel, Json }
Output Json = { Json }
Output CSV = { CSV structured in JSON } or direct CSV with supporting headers
Output Excel = { Excel data as base64encoded into JSON }
Example:
{
"response": "JVBERi0xLjcKJeLjz9MKNiAwIG9iago8....",
"meta": {
"encoding": "base64",
"content-type": "application\/xls"
}
}
Are there any other best ways of doing the above?