state from service needs to be json