我在哪里可以找到可用于测试我的应用程序的有效JSON链接?

时间:2013-07-25 16:48:22

标签: json

我试过这个我在这里找到的那​​个 -

http://puppygifs.tumblr.com/api/read/json

但如果我测试它的有效性,就会给我一个错误。

我在这里验证了它:

http://jsonlint.com/

有人能指出我可以用来测试我的应用程序的功能性JSON链接吗?

2 个答案:

答案 0 :(得分:1)

为什么不尝试免费stackexchange api

burhan@lenux:~$ http "http://api.stackexchange.com/2.1/users/1755023?site=stackoverflow"
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: false
Access-Control-Allow-Methods: GET, POST
Access-Control-Allow-Origin: *
Cache-Control: private
Content-Encoding: gzip
Content-Length: 433
Content-Type: application/json; charset=utf-8
Date: Thu, 25 Jul 2013 16:54:31 GMT

{
    "has_more": false, 
    "items": [
        {
            "accept_rate": 91, 
            "account_id": 1950909, 
            "age": 27, 
            "badge_counts": {
                "bronze": 9, 
                "gold": 0, 
                "silver": 0
            }, 
            "creation_date": 1350528803, 
            "display_name": "Rj.", 
            "is_employee": false, 
            "last_access_date": 1374770664, 
            "last_modified_date": 1372353815, 
            "link": "http://stackoverflow.com/users/1755023/rj", 
            "location": "West Hollywood, CA", 
            "profile_image": "https://www.gravatar.com/avatar/f1f3ab1c31c6ee987ba28a78318586fd?d=identicon&r=PG", 
            "reputation": 423, 
            "reputation_change_day": 5, 
            "reputation_change_month": 95, 
            "reputation_change_quarter": 95, 
            "reputation_change_week": 5, 
            "reputation_change_year": 315, 
            "user_id": 1755023, 
            "user_type": "registered", 
            "website_url": ""
        }
    ], 
    "quota_max": 300, 
    "quota_remaining": 294
}

答案 1 :(得分:1)

这是一个返回JSON的“我的IP”类型服务。

http://whoami.bradallen.net/