title: MultiJson::LoadError (795: unexpected token
body: <p>I am getting some kind of weird behaviour. I am using <code>sidekiq</code> for background processing.
  Whenever I do <code>perform_async</code> on <code>SidekiqJob</code> to post the data to another rails app, I get <code>MultiJson::LoadError</code>, however when I create a instance of it and call perform on it works like a charm. Don't know what is the exact culprit.</p>
  
  <p><code>SidekiqJob.perform_async(:id =&gt; blog.id)</code>  (Having <code>MultiJSON::LOAD</code> error)</p>
  
  <p><code>SidekiqJob.new.perform(:id =&gt; blog.id)</code> (Everything works fine)</p>
  
  <p><code>SidekiqJob</code> perform method looks like this:</p>
  
  <pre><code>def perform(params)
    body = {'status' =&gt; 'COMPLETED', 'results' =&gt; Result.find(params['id']).build_results}
  
    HTTParty.post(some_callback_url, :body =&gt; body.to_json, :headers =&gt; {'Content-Type' =&gt; 'application/json'})
  end
  </code></pre>
  
  <p>Need some direction to resolve this issue.</p>
  
  <p>adding charset utf-8 in request header resolve the issue</p>