rsdoiel/Simple-Timesheet-Notation — Issue #3: Support configurable JSON objects from parsing the same timesheet content
Author: rsdoiel
Created: 2011-11-22 15:04:55+00:00
State: open

Depending on the type of reporting or integration it would be useful to beable to pass a set of options into the parsing method and output different JSON structures based on the content parsed. E.g. if hours was wanted then you could pass that in and hours would be calculated by comparing the start and end times of an entry. If you needed some ad-hoc fields (e.g. project_id or task_id used by Harvest API) it would be nice to pass a function in that would look at the entry and calculate the values of the ad-hoc fields.