Add missing "content_type :json" for pure JSON output

Now the content type of pure JSON is 'text/html'. Changed it to appropriate content type.