如何用Java读取这个JSON文件?
"paging": {
"previous": "https://graph.facebook.com/v2.8/6604386669/posts?fields=shares,created_time,permalink_url&limit=25&format=json&since=1489024832&access_token=EAACEdEose0cBACipMCOGXLzMceEqHFvGyjdHNfUjcLeLIlllWlwZA0EP8UlHrZCglOgQjnyyXF9NieEQqEUxfTiqQh2LTAmWoHuq2cQebaHBHYsZCyW5ZAOmmXZCMfC6k7wdrvD1nqA0OokJg5aiL0N7qm1zZC4E9OElZAN7r8FyMZAWHmQfg910PyLG7OXaaZB4ZD&__paging_token=enc_AdDjgl8J8ah7EkRm6ANkMzNaxRYdGGE7wGUpMEC7LqLKmzi21Wm4IP1Mg8tc2BZBSUJEgZAm6TlmDySTWr7hoqfKwR&__previous=1",
"next": "https://graph.facebook.com/v2.8/6604386669/posts?fields=shares,created_time,permalink_url&limit=25&format=json&access_token=EAACEdEose0cBACipMCOGXLzMceEqHFvGyjdHNfUjcLeLIlllWlwZA0EP8UlHrZCglOgQjnyyXF9NieEQqEUxfTiqQh2LTAmWoHuq2cQebaHBHYsZCyW5ZAOmmXZCMfC6k7wdrvD1nqA0OokJg5aiL0N7qm1zZC4E9OElZAN7r8FyMZAWHmQfg910PyLG7OXaaZB4ZD&until=1488618000&__paging_token=enc_AdC8UoxF4N2jCIoT2POGWgsxrPdVtNkEJHpCN5badU5rBQqS9ZAoRfq4RPsMDpCKR9oqAO9gj241ngm8ZBDpZC5kGGI"
}
答案 0 :(得分:1)
您可以在Java中了解Json Parsing
。您可以尝试一下:https://www.tutorialspoint.com/json/json_java_example.htm
答案 1 :(得分:0)
您使用什么用于REST? 有许多网络服务,就像我们有Spring Webservices。