Fixed json output.
Update to latest rails.