I need to send a json subquery that includes an image in an internal hierarchy. eg:
{"product" : {
"catalogue_id" : "x",
"name" : "my product",
"image" : #<image>
}
}
The problem is that if I try to use multipartFormRequestWithMethod:path:parameters:constructingBodyWithBlock:(s appendPartWithFileData:name:fileName:mimeType:), passing in the catalogueid and name as params, the image field is added after "product", for example:
{"product" : {
"catalogue_id" : "x",
"name" : "my product"
} ,
"image" : #<image>
}
Is it possible to indicate that the image field is nested at a certain depth?
Thanks heaps
source
share