modify converting json to object