Added active_model_serializers which do JSON conversion, fixed a bug