Add missing "content_type :json" for pure JSON output

The content type of pure JSON was 'text/html'. Changed it to appropriate content type.