update Function for JSON Handler