added json parser for body request