set content-type then use json

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>