Modified traverse in jsonobject