Added encoding/decoding of recurrence to JSON file