You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but ids.count is always 1 and contains only last 88kw7x value
in XMLDecoder.swift on line #153 I'm printing print("topLevel: \(topLevel)") and it always showing me ["page-size": "50", "ids": ["item": "88kw7x", "type": "array"]]
@ShawnMoore Is there a way to decode ids correctly using this lib or it's a bug?
The text was updated successfully, but these errors were encountered:
Looks like I found a way to parse nested array correctly
now it looks like topLevel: ["ids": ["type": "array", "item": ["6yrscx", "88kw7x"]], "page-size": "50"]
and finally I can decode it like this
Yeas it must be done something like this. I have tried to use just [String] but it does throw parse error. It is a little odd syntax but can be handled.
final public class CustomerInfo {
// Customer Messages
var customerMessages: ArrayOfString?
}
final public class ArrayOfString {
// String
var string: [String]?
}
I have XML like this
trying to decode it into this struct
but
ids.count
is always 1 and contains only last88kw7x
valuein
XMLDecoder.swift
on line#153
I'm printingprint("topLevel: \(topLevel)")
and it always showing me["page-size": "50", "ids": ["item": "88kw7x", "type": "array"]]
@ShawnMoore Is there a way to decode
ids
correctly using this lib or it's a bug?The text was updated successfully, but these errors were encountered: