PopulationFunctionFromJSON parsing done, just calculation left.