mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Fixed merge conflicts with master
This commit is contained in:
@@ -78,6 +78,10 @@ namespace {
|
||||
return std::to_string(value.get<double>());
|
||||
}
|
||||
else if (value.is_array()) {
|
||||
if (value.empty()) {
|
||||
return "{}";
|
||||
}
|
||||
|
||||
std::string literal = "{";
|
||||
for (nlohmann::json::iterator it = value.begin(); it != value.end(); ++it) {
|
||||
literal += luaLiteralFromJson(it.value()) += ",";
|
||||
@@ -87,6 +91,10 @@ namespace {
|
||||
return literal;
|
||||
}
|
||||
else if (value.is_object()) {
|
||||
if (value.empty()) {
|
||||
return "{}";
|
||||
}
|
||||
|
||||
std::string literal = "{";
|
||||
for (nlohmann::json::iterator it = value.begin(); it != value.end(); ++it) {
|
||||
literal += it.key() + "=" + luaLiteralFromJson(it.value()) += ",";
|
||||
|
||||
Reference in New Issue
Block a user