Skip to content

Commit

Permalink
json: fix JSON object name converting (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
holmes1412 authored Nov 20, 2024
1 parent 931580d commit 3ca4a40
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/templates/config/Json.cc
Original file line number Diff line number Diff line change
Expand Up @@ -998,9 +998,8 @@ void Json::object_convert(const json_object_t* obj, int spaces, int depth,
{
out_str->append(padding);
}
out_str->append("\"");
out_str->append(name);
out_str->append("\": ");
string_convert(name, out_str);
out_str->append(": ");
value_convert(val, spaces, depth + 1, out_str);
}

Expand Down

0 comments on commit 3ca4a40

Please sign in to comment.