【发布时间】:2023-03-15 20:56:01
【问题描述】:
我想使用 SpringBoot 创建如下所示的 Json 格式。
[
{
"name": "foo",
"albums": [
{
"title": "album_one",
"artist": "foo",
"ntracks": 12
},
{
"title": "album_two",
"artist": "foo",
"ntracks": 15
}
]
},
{
"name": "bar",
"albums": [
{
"title": "foo walks into a bar",
"artist": "bar",
"ntracks": 12
},
{
"title": "album_song",
"artist": "bar",
"ntracks": 17
}
]
}]
请帮助我,请参考有助于创建类似 Json 格式的 Spring Boot 应用程序。
【问题讨论】:
标签: json spring-boot