changed object type =json to object type = object