switch cores and nodes from string to int in json