5 questions
0
votes
1
answer
44
views
How can I make Swift CodingKeys for JSON data with non-unique keys?
I am using the Unsplash API and it gives this response (which is just a snapshot)
"exif": {
"name": "Canon, EOS 6D"
},
"location": {
...
0
votes
1
answer
447
views
Swift Key 'CodingKeys()' not found: No value associated with key CodingKeys() ("row")
"Key 'CodingKeys(stringValue: "row", intValue: nil)' not found: No
value associated with key CodingKeys(stringValue: "row", intValue:
nil) ("row"). codingPath: [...
3
votes
3
answers
2k
views
Use different coding keys for encoding/decoding in Swift
I have to decode an object from this JSON:
{
"id": "..."
"someData": { ... },
"elements": {
"values": [
{
"id": &...
-2
votes
1
answer
47
views
How to concatenate word count and string in autohotkey
How to concatenate word count and string in autohotkey
global p = "ppp"
global level = 4
global g = "ggg"
MsgBox %p%%level*5%%g%
How to output ppp20ggg
0
votes
1
answer
356
views
Swift: getting error while decoding using CodingKey
I have created a model and I need to try to add value to one of the CodingKey's case
struct Model {
let name: String
let location: String
let descriptions: String
}
enum CodingKeys: String,...