Removed Content-type header since json_encode does that.