example.json
{
"user": "John",
"age": 25,
"gender": "Male",
"title-name": ["title1","title2","title3"],
"address":
{
"permanent-address":
{
"city": "Ohio",
"country": "US"
},
"temporary-address":
{
"city": "Chicago",
"country": "US"
}
}
}
当我们使用json
标准api object model
时,如何为上述JSR-353
构建树。
树是以root还是root的顶部开头(如DOCUMENT_NODE
中的JAX-P
)。