What language are you programming in? : Swift UI , Swift
What does the JSON response actually look like? Can you post an example?
[
"Status" : 0,
"TC": false,
"RD": true,
"RA": true,
"AD": false,
"CD": false,
"Question": [
[
"name": "google.com.",
"type": 1
]
],
"Answer": [
[
"name": "google.com.",
"type": 1,
"TTL": 600,
"data": "142.251.163.102"
],
[
"name": "google.com.",
"type": 1,
"TTL": 600,
"data": "142.251.163.139"
],
[
"name": "google.com.",
"type": 1,
"TTL": 600,
"data": "142.251.163.101"
],
]
]
How are you parsing this JSON response? Using Swift’s Codable feature? Or something else? : Combine framework
try JSONSerialization.data(withJSONObject: response, options: JSONSerialization.WritingOptions.prettyPrinted)