add a forgotten to_json

to correct https://github.com/mattbeedle/capsule_crm/issues/43