change post data to standar format