我正在用java编写一个独立的脚本,需要在其中创建.json文件并将数据写入其中。如果没有任何json库,我如何添加它。我的json应该是
{
"pageInfo": {
"pageName": "ttt",
"pageNumbers": "12"
},
"posts": [
{
"post_id": "12345678",
"actor_id": "123456745345890",
"nameOfPersonWhoPosted": "Mark",
"message": "Sounds cool. Can't wait to see it!",
"likesCount": "2",
"comments": [],
"timeOfPost": "7878"
}
]
}
暂无答案!
目前还没有任何答案,快来回答吧!