[HttpPost]
public void ReturnDefect([FromBody] dynamic json)
{
VisualControlJob job = new VisualControlJob();
StreamWriter sw = new StreamWriter("C:\\kek/kek.txt");
job.WaferName = json.WaferName;
job.surname = json.surname;
job.dateTime = json.dateTime;
job.listOfDefects = json.listOfDefects;
sw.Write(job.WaferName);
sw.WriteLine(json);
sw.Close();
}