convert the type of json objects