0
{
"listing":{
"deliveryOption":"option",
"event":{
"date":"date",
"name":"name of event",
"venue":"venue"
},
"externalListingId":"000000000",
"inhandDate":"inhand date",
"pricePerTicket":{
"amount":"cost",
"currency":"USD"
},
"quantity":4,
"rows":"row",
"section":"sec",
"splitOption":"MULTIPLES",
"splitQuantity":[
2,
4
]
}
}
发送此JSON数据POST请求时,回应是:StubHub JSON发布请求的正确格式是什么?
Can not deserialize instance of java.lang.Integer out of START_ARRAY token
,如果我离开了splitQuantity
键&值,它的工作原理。 JSON格式有问题吗?
的documentation状态:
splitOption
:(字符串)MULTIPLES
splitQuantity
:(INT)1,2,3,或数量的除数(如果数量是10,splitQuantity可以是1,2,3 ,5或10)。
的JSON是有效的,但并不意味着它是接收应用程序的有效数据。 –
那么API文档说什么是传递该密钥的有效对象?也许整数列表是无效的?这真的不是Python或JSON问题。 –
我会发布一些文档。 –