responsd with json to posts