3
我必須發送嵌套的json請求,其中包含內部層次結構中的圖像。例如:AFNetworking嵌套json中的帖子圖像
{"product" : {
"catalogue_id" : "x",
"name" : "my product",
"image" : #<image>
}
}
問題是,如果我嘗試使用multipartFormRequestWithMethod:path:parameters:constructingBodyWithBlock:
(和appendPartWithFileData:name:fileName:mimeType:
),傳遞catalogue_id和名稱作爲參數,可以像場的「產品」後附加,就像這樣:
{"product" : {
"catalogue_id" : "x",
"name" : "my product"
} ,
"image" : #<image>
}
是有一種方法可以指定圖像字段嵌套在特定深度?
感謝堆
看到產品[圖]只是幫了我很大的!感謝您回來回答您自己的問題! –