Convert between RFC2445 RRULE and its JSON equivalent. Useful with rrule.js.