changed count json data to make it json object for  request