add header('Content-type: application/json'); to service handler