我在一个批处理请求后的样子:返回JSON数据
<feed xmlns='http://www.w3.org/2005/Atom'
xmlns:media='http://search.yahoo.com/mrss/'
xmlns:batch='http://schemas.google.com/gdata/batch'
xmlns:yt='http://gdata.youtube.com/schemas/2007'>
<batch:operation type='query'/>
<entry>
<id>http://gdata.youtube.com/feeds/api/users/ytUser1</id>
</entry>
<entry>
<id>https://gdata.youtube.com/feeds/api/users/ytUser2</id>
</entry>
<entry>
<id>https://gdata.youtube.com/feeds/api/users/ytUser3</id>
</entry>
</feed>
当然除了与实际用户和更多的人的。我得到的XML返回罚款。有没有办法使用POST请求JSON格式的数据?我知道在GET请求中使用?alt = json会返回json,但这是可能的吗?如果是这样,在POST批处理请求中如何?
嗨,我有同样的麻烦。我想用JSON做出回应。你有没有找到任何方法? – eHussain