Reading invoices from files as JSON object or JSON array