fix: Video.toString() outputs an illegal json string (#3032)

refactor: json string concat

add an extra line at EOF
This commit is contained in:
Xcyq
2024-10-06 14:54:41 +08:00
committed by GitHub
parent 8bd31758b9
commit 24b4586944
3 changed files with 20 additions and 9 deletions
@@ -43,7 +43,7 @@ public record Video(Integer id, String title, Integer length, String description
+ "\"length\": " + length + ","
+ "\"description\": \"" + description + "\","
+ "\"director\": \"" + director + "\","
+ "\"language\": \"" + language + "\","
+ "\"language\": \"" + language + "\""
+ "}";
}
}