convert post to data dict