I created an API that creates a text table from a JSON array. Useful to send tables of data over email, Slack or Markdown.
The API is available on Mashape: https://market.mashape.com/f-sm-jorquera/tablifyme
Example:
curl -X POST --include 'https://tablifyme.p.mashape.com/tablifyme' \ -H 'X-Mashape-Key: My-Secret-key' \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ --data-binary '{"body":[[1,2,3],[4,"test",6]],"header":["Y","A","B"]}'
Result:
+-----+------+-----+ | Y | A | B | +=====+======+=====+ | 1 | 2 | 3 | +-----+------+-----+ | 4 | test | 6 | +-----+------+-----+