I'm trying to add in a dynamic table based on a two-dimensional array that is stored as JSON in a file on the disk. I've got no control of the file, as it gets pulled in from a web-service and documents are dynamically created based on it.
As a sample of the file, it looks something like this:
[
{"firstName":"John", "lastName":"Doe"},
{"firstName":"Anna", "lastName":"Smith"},
{"firstName":"Peter","lastName": "Jones"}
];
Best Answer
This is a good example where LuaTeX is very useful. You can easily load and parse the json file with it and write the data into a table. Here is an example:
Output: