Skip to content

Commit

Permalink
fix: JSON object name converting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Nov 20, 2024
1 parent af9b092 commit 4532c1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions 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 4532c1b

Please sign in to comment.