V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
obiwong
V2EX  ›  V2EX

API 问题:/api/nodes/all.json 最后一个元素后多了一个逗号

  •  
  •   obiwong · Apr 17, 2011 · 5460 views
    This topic created in 5502 days ago, the information mentioned may be changed or developed.
    http://www.v2ex.com/api/nodes/all.json

    ...
    {
    "id" : 373,
    "name" : "blog",
    "url" : "http://www.v2ex.com/go/blog",
    ...
    "created" : "2011-04-16 05:50:20.941311"
    },

    ]
    6 replies    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       Apr 17, 2011 via iPhone
    一会到家就修正。
    obiwong
        2
    obiwong  
    OP
       Apr 17, 2011 via Android
    ok. 我晚上再试试
    Livid
        3
    Livid  
    MOD
    PRO
       Apr 17, 2011
    Fixed.
    obiwong
        4
    obiwong  
    OP
       Apr 17, 2011
    @Livid 确定?

    $ curl http://www.v2ex.com/api/nodes/all.json | tail
    "header" : null,
    "footer" : "这是一个特殊的节点。这个节点里的内容不会影响首页的时间轴。",
    "created" : "2011-04-16 05:50:20.941311"
    },
    ]

    最后还是有一个逗号。
    Livid
        5
    Livid  
    MOD
    PRO
       Apr 17, 2011
    @obiwong 现在确定好了。刚才将缓存清除了。
    obiwong
        6
    obiwong  
    OP
       Apr 17, 2011
    试了一把,解决了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3043 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 15:14 · PVG 23:14 · LAX 08:14 · JFK 11:14
    ♥ Do have faith in what you're doing.