Add EnumeratedType#to_json.