Attempt to match required JSON format. Still need to deal with dates appearing as floats.
Handles dates, and now friendly with being imported into another module. I still need to know what to do for errors.