Changed JSON Post to JSON object while posting data.