Refactor Post and PostComment: extract method create_object + tidy up post user data in JSON