add parseBody method to get body of post request
refactor
use json stype for post data