diff --git a/src/main/java/fun/bb1/toml/TomlObject.java b/src/main/java/fun/bb1/toml/TomlObject.java index 51f8002..d84ebd0 100644 --- a/src/main/java/fun/bb1/toml/TomlObject.java +++ b/src/main/java/fun/bb1/toml/TomlObject.java @@ -103,7 +103,7 @@ public final class TomlObject implements ITomlElement, Iterable { public final @NotNull String toString() { @NotNull final StringBuilder asString = new StringBuilder("TomlObject{elementMap="); for (@NotNull final Entry entry : this.elementMap.entrySet()) { - asString.append(entry.getKey()).append(',').append(entry.getValue().toString()).append(','); + asString.append('[').append(entry.getKey()).append(':').append(entry.getValue().toString()).append("],"); } final String compiled = asString.toString(); return compiled.substring(0, compiled.length() - 1) + '}';