diff --git a/package.json b/package.json index 226b8d8..1216942 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dicom-dimse-native", - "version": "2.4.0", + "version": "2.4.1", "description": "native addon using DCMTK dicom toolkit", "main": "index.js", "scripts": { diff --git a/src/FindAsyncWorker.cc b/src/FindAsyncWorker.cc index 2801360..aed1535 100644 --- a/src/FindAsyncWorker.cc +++ b/src/FindAsyncWorker.cc @@ -267,7 +267,9 @@ void FindAsyncWorker::Execute(const ExecutionProgress &progress) std::string vr = std::string(t.getVR().getVRName()); json jsonValue = json::array(); if (vr == "PN") { - jsonValue.push_back({json{{"Alphabetic", value}}}); + json j; + j["Alphabetic"] = value; + jsonValue.push_back(j); } else if (vr == "IS" || vr == "SL" || vr == "SS" || vr == "UL" || vr == "US") { if (value.length() == 0) {