PTFM-12309 Adding call to JSON::get<std::string>()

This fixes an LLVM/Clang build error in the upload agent.