fixed obj to json argument errors