arrayJson #56

Merged
Alexander_KS merged 6 commits from arrayJson into master 2025-05-18 15:32:13 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 4614e166b4 - Show all commits

View File

@@ -1,3 +1,3 @@
#pragma once #pragma once
#define VERSION_SPF "2419" #define VERSION_SPF "2420"

View File

@@ -766,15 +766,15 @@ int SPF_GetArrayDistribution(void*& context, int winHandler, short *options, sho
else else
printInternalError(convertFileName(__FILE__).c_str(), __LINE__); printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
json allRegionsV = json::array(); json regions = json::array();
for (auto& reg : parallelRegions) for (auto& reg : parallelRegions)
{ {
json currReg = reg->toJson(); json currReg = reg->toJson();
allRegionsV.push_back(currReg); regions.push_back(currReg);
} }
json allRegions; json allRegions;
allRegions["allRegions"] = allRegionsV; allRegions["allRegions"] = regions;
string resVal = allRegions.dump(); string resVal = allRegions.dump();
copyStringToShort(result, resVal); copyStringToShort(result, resVal);