update json metadata for required fields