Swift parsing JSON Arrays gives zero









up vote
0
down vote

favorite












JSON output



"inputs":"lat":"29.93","lon":"-95.61","system_capacity":"30.30","azimuth":"180","tilt":"40","array_type":"1","module_type":"1","losses":"10","errors":,"warnings":,"version":"1.0.1","ssc_info":"version":45,"build":"Linux 64 bit GNU/C++ Jul 7 2015 14:24:09","station_info":"lat":29.93000030517578,"lon":-95.62000274658203,"elev":41.0,"tz":-6.0,"location":"None","city":"","state":"Texas","solar_resource_file":"W9562N2993.csv","distance":964,"outputs":"ac_monthly":[3480.57373046875,3440.078369140625,3992.6513671875,3977.071533203125,4074.91357421875,3701.75,3897.655517578125,4248.00390625,4023.283447265625,4157.29931640625,3605.156005859375,3342.12890625],"poa_monthly":[139.791015625,140.18896484375,164.8218536376953,164.47149658203125,173.2971649169922,159.90576171875,169.84793090820312,186.20114135742188,173.14492797851562,176.2291717529297,148.28318786621094,136.62326049804688],"solrad_monthly":[4.509387493133545,5.006748676300049,5.316833972930908,5.4823832511901855,5.590230941772461,5.3301920890808105,5.4789652824401855,6.00648832321167,5.77149772644043,5.684812068939209,4.94277286529541,4.407201766967773],"dc_monthly":[3644.867919921875,3606.52001953125,4179.85107421875,4158.3193359375,4252.9140625,3865.03369140625,4069.092041015625,4432.62744140625,4198.369140625,4336.99609375,3767.055419921875,3490.091064453125],"ac_annual":45940.55859375,"solrad_annual":5.293959140777588,"capacity_factor":17.308107376098633"inputs":"lat":"29.93","lon":"-95.61","system_capacity":"30.30","azimuth":"180","tilt":"40","array_type":"1","module_type":"1","losses":"10","errors":,"warnings":,"version":"1.0.1","ssc_info":"version":45,"build":"Linux 64 bit GNU/C++ Jul 7 2015 14:24:09","station_info":"lat":29.93000030517578,"lon":-95.62000274658203,"elev":41.0,"tz":-6.0,"location":"None","city":"","state":"Texas","solar_resource_file":"W9562N2993.csv","distance":964,"outputs":"ac_monthly":[3480.57373046875,3440.078369140625,3992.6513671875,3977.071533203125,4074.91357421875,3701.75,3897.655517578125,4248.00390625,4023.283447265625,4157.29931640625,3605.156005859375,3342.12890625],"poa_monthly":[139.791015625,140.18896484375,164.8218536376953,164.47149658203125,173.2971649169922,159.90576171875,169.84793090820312,186.20114135742188,173.14492797851562,176.2291717529297,148.28318786621094,136.62326049804688],"solrad_monthly":[4.509387493133545,5.006748676300049,5.316833972930908,5.4823832511901855,5.590230941772461,5.3301920890808105,5.4789652824401855,6.00648832321167,5.77149772644043,5.684812068939209,4.94277286529541,4.407201766967773],"dc_monthly":[3644.867919921875,3606.52001953125,4179.85107421875,4158.3193359375,4252.9140625,3865.03369140625,4069.092041015625,4432.62744140625,4198.369140625,4336.99609375,3767.055419921875,3490.091064453125],"ac_annual":45940.55859375,"solrad_annual":5.293959140777588,"capacity_factor":17.308107376098633


I am using the following class.



class PVClass

struct Top : Decodable
var Outputs: OutputsJSON?
var Inputs: InputsJSON?
enum CodingKeys : String, CodingKey
case Inputs = "inputs"
case Outputs = "outputs"


struct InputsJSON: Decodable
var lat: String?
var lon: String?
enum CodingKeys : String, CodingKey
case lat = "lat"
case lon = "lon"



struct OutputsJSON: Decodable

var dcMonthly: DC_MonthlyJSON?

struct DC_MonthlyJSON: Decodable
var DC_Monthly: [String]?
enum CodingKeys : String, CodingKey
case DC_Monthly = "dc_monthly"







I access the JSON. I can print the 'lat' variable value but dc_monthly array gives me 0. I know there are 12 elements in the array. Even if I print DC_Monthly.count the value is 0. How can I access the array elements?



let decoder = JSONDecoder()
let jsonData = try decoder.decode(PVClass.Top.self, from: data!)
print("Lat: ", jsonData.Inputs?.lat ?? "0")
print("dc_monthly: ", jsonData.Outputs?.dcMonthly?.DC_Monthly ?? "0")









share|improve this question























  • There's no dc_monthly key in the JSON you posted.
    – rmaddy
    Nov 9 at 5:21










  • Sorry my mistake. I have the complete JSON when I run my program but forgot to paste the full JSON. Now I have updated the post. Noticed that the array elements in dc-monthly are not named, so How do I parse the elements?
    – vrao
    Nov 9 at 13:15














up vote
0
down vote

favorite












JSON output



"inputs":"lat":"29.93","lon":"-95.61","system_capacity":"30.30","azimuth":"180","tilt":"40","array_type":"1","module_type":"1","losses":"10","errors":,"warnings":,"version":"1.0.1","ssc_info":"version":45,"build":"Linux 64 bit GNU/C++ Jul 7 2015 14:24:09","station_info":"lat":29.93000030517578,"lon":-95.62000274658203,"elev":41.0,"tz":-6.0,"location":"None","city":"","state":"Texas","solar_resource_file":"W9562N2993.csv","distance":964,"outputs":"ac_monthly":[3480.57373046875,3440.078369140625,3992.6513671875,3977.071533203125,4074.91357421875,3701.75,3897.655517578125,4248.00390625,4023.283447265625,4157.29931640625,3605.156005859375,3342.12890625],"poa_monthly":[139.791015625,140.18896484375,164.8218536376953,164.47149658203125,173.2971649169922,159.90576171875,169.84793090820312,186.20114135742188,173.14492797851562,176.2291717529297,148.28318786621094,136.62326049804688],"solrad_monthly":[4.509387493133545,5.006748676300049,5.316833972930908,5.4823832511901855,5.590230941772461,5.3301920890808105,5.4789652824401855,6.00648832321167,5.77149772644043,5.684812068939209,4.94277286529541,4.407201766967773],"dc_monthly":[3644.867919921875,3606.52001953125,4179.85107421875,4158.3193359375,4252.9140625,3865.03369140625,4069.092041015625,4432.62744140625,4198.369140625,4336.99609375,3767.055419921875,3490.091064453125],"ac_annual":45940.55859375,"solrad_annual":5.293959140777588,"capacity_factor":17.308107376098633"inputs":"lat":"29.93","lon":"-95.61","system_capacity":"30.30","azimuth":"180","tilt":"40","array_type":"1","module_type":"1","losses":"10","errors":,"warnings":,"version":"1.0.1","ssc_info":"version":45,"build":"Linux 64 bit GNU/C++ Jul 7 2015 14:24:09","station_info":"lat":29.93000030517578,"lon":-95.62000274658203,"elev":41.0,"tz":-6.0,"location":"None","city":"","state":"Texas","solar_resource_file":"W9562N2993.csv","distance":964,"outputs":"ac_monthly":[3480.57373046875,3440.078369140625,3992.6513671875,3977.071533203125,4074.91357421875,3701.75,3897.655517578125,4248.00390625,4023.283447265625,4157.29931640625,3605.156005859375,3342.12890625],"poa_monthly":[139.791015625,140.18896484375,164.8218536376953,164.47149658203125,173.2971649169922,159.90576171875,169.84793090820312,186.20114135742188,173.14492797851562,176.2291717529297,148.28318786621094,136.62326049804688],"solrad_monthly":[4.509387493133545,5.006748676300049,5.316833972930908,5.4823832511901855,5.590230941772461,5.3301920890808105,5.4789652824401855,6.00648832321167,5.77149772644043,5.684812068939209,4.94277286529541,4.407201766967773],"dc_monthly":[3644.867919921875,3606.52001953125,4179.85107421875,4158.3193359375,4252.9140625,3865.03369140625,4069.092041015625,4432.62744140625,4198.369140625,4336.99609375,3767.055419921875,3490.091064453125],"ac_annual":45940.55859375,"solrad_annual":5.293959140777588,"capacity_factor":17.308107376098633


I am using the following class.



class PVClass

struct Top : Decodable
var Outputs: OutputsJSON?
var Inputs: InputsJSON?
enum CodingKeys : String, CodingKey
case Inputs = "inputs"
case Outputs = "outputs"


struct InputsJSON: Decodable
var lat: String?
var lon: String?
enum CodingKeys : String, CodingKey
case lat = "lat"
case lon = "lon"



struct OutputsJSON: Decodable

var dcMonthly: DC_MonthlyJSON?

struct DC_MonthlyJSON: Decodable
var DC_Monthly: [String]?
enum CodingKeys : String, CodingKey
case DC_Monthly = "dc_monthly"







I access the JSON. I can print the 'lat' variable value but dc_monthly array gives me 0. I know there are 12 elements in the array. Even if I print DC_Monthly.count the value is 0. How can I access the array elements?



let decoder = JSONDecoder()
let jsonData = try decoder.decode(PVClass.Top.self, from: data!)
print("Lat: ", jsonData.Inputs?.lat ?? "0")
print("dc_monthly: ", jsonData.Outputs?.dcMonthly?.DC_Monthly ?? "0")









share|improve this question























  • There's no dc_monthly key in the JSON you posted.
    – rmaddy
    Nov 9 at 5:21










  • Sorry my mistake. I have the complete JSON when I run my program but forgot to paste the full JSON. Now I have updated the post. Noticed that the array elements in dc-monthly are not named, so How do I parse the elements?
    – vrao
    Nov 9 at 13:15












up vote
0
down vote

favorite









up vote
0
down vote

favorite











JSON output



"inputs":"lat":"29.93","lon":"-95.61","system_capacity":"30.30","azimuth":"180","tilt":"40","array_type":"1","module_type":"1","losses":"10","errors":,"warnings":,"version":"1.0.1","ssc_info":"version":45,"build":"Linux 64 bit GNU/C++ Jul 7 2015 14:24:09","station_info":"lat":29.93000030517578,"lon":-95.62000274658203,"elev":41.0,"tz":-6.0,"location":"None","city":"","state":"Texas","solar_resource_file":"W9562N2993.csv","distance":964,"outputs":"ac_monthly":[3480.57373046875,3440.078369140625,3992.6513671875,3977.071533203125,4074.91357421875,3701.75,3897.655517578125,4248.00390625,4023.283447265625,4157.29931640625,3605.156005859375,3342.12890625],"poa_monthly":[139.791015625,140.18896484375,164.8218536376953,164.47149658203125,173.2971649169922,159.90576171875,169.84793090820312,186.20114135742188,173.14492797851562,176.2291717529297,148.28318786621094,136.62326049804688],"solrad_monthly":[4.509387493133545,5.006748676300049,5.316833972930908,5.4823832511901855,5.590230941772461,5.3301920890808105,5.4789652824401855,6.00648832321167,5.77149772644043,5.684812068939209,4.94277286529541,4.407201766967773],"dc_monthly":[3644.867919921875,3606.52001953125,4179.85107421875,4158.3193359375,4252.9140625,3865.03369140625,4069.092041015625,4432.62744140625,4198.369140625,4336.99609375,3767.055419921875,3490.091064453125],"ac_annual":45940.55859375,"solrad_annual":5.293959140777588,"capacity_factor":17.308107376098633"inputs":"lat":"29.93","lon":"-95.61","system_capacity":"30.30","azimuth":"180","tilt":"40","array_type":"1","module_type":"1","losses":"10","errors":,"warnings":,"version":"1.0.1","ssc_info":"version":45,"build":"Linux 64 bit GNU/C++ Jul 7 2015 14:24:09","station_info":"lat":29.93000030517578,"lon":-95.62000274658203,"elev":41.0,"tz":-6.0,"location":"None","city":"","state":"Texas","solar_resource_file":"W9562N2993.csv","distance":964,"outputs":"ac_monthly":[3480.57373046875,3440.078369140625,3992.6513671875,3977.071533203125,4074.91357421875,3701.75,3897.655517578125,4248.00390625,4023.283447265625,4157.29931640625,3605.156005859375,3342.12890625],"poa_monthly":[139.791015625,140.18896484375,164.8218536376953,164.47149658203125,173.2971649169922,159.90576171875,169.84793090820312,186.20114135742188,173.14492797851562,176.2291717529297,148.28318786621094,136.62326049804688],"solrad_monthly":[4.509387493133545,5.006748676300049,5.316833972930908,5.4823832511901855,5.590230941772461,5.3301920890808105,5.4789652824401855,6.00648832321167,5.77149772644043,5.684812068939209,4.94277286529541,4.407201766967773],"dc_monthly":[3644.867919921875,3606.52001953125,4179.85107421875,4158.3193359375,4252.9140625,3865.03369140625,4069.092041015625,4432.62744140625,4198.369140625,4336.99609375,3767.055419921875,3490.091064453125],"ac_annual":45940.55859375,"solrad_annual":5.293959140777588,"capacity_factor":17.308107376098633


I am using the following class.



class PVClass

struct Top : Decodable
var Outputs: OutputsJSON?
var Inputs: InputsJSON?
enum CodingKeys : String, CodingKey
case Inputs = "inputs"
case Outputs = "outputs"


struct InputsJSON: Decodable
var lat: String?
var lon: String?
enum CodingKeys : String, CodingKey
case lat = "lat"
case lon = "lon"



struct OutputsJSON: Decodable

var dcMonthly: DC_MonthlyJSON?

struct DC_MonthlyJSON: Decodable
var DC_Monthly: [String]?
enum CodingKeys : String, CodingKey
case DC_Monthly = "dc_monthly"







I access the JSON. I can print the 'lat' variable value but dc_monthly array gives me 0. I know there are 12 elements in the array. Even if I print DC_Monthly.count the value is 0. How can I access the array elements?



let decoder = JSONDecoder()
let jsonData = try decoder.decode(PVClass.Top.self, from: data!)
print("Lat: ", jsonData.Inputs?.lat ?? "0")
print("dc_monthly: ", jsonData.Outputs?.dcMonthly?.DC_Monthly ?? "0")









share|improve this question















JSON output



"inputs":"lat":"29.93","lon":"-95.61","system_capacity":"30.30","azimuth":"180","tilt":"40","array_type":"1","module_type":"1","losses":"10","errors":,"warnings":,"version":"1.0.1","ssc_info":"version":45,"build":"Linux 64 bit GNU/C++ Jul 7 2015 14:24:09","station_info":"lat":29.93000030517578,"lon":-95.62000274658203,"elev":41.0,"tz":-6.0,"location":"None","city":"","state":"Texas","solar_resource_file":"W9562N2993.csv","distance":964,"outputs":"ac_monthly":[3480.57373046875,3440.078369140625,3992.6513671875,3977.071533203125,4074.91357421875,3701.75,3897.655517578125,4248.00390625,4023.283447265625,4157.29931640625,3605.156005859375,3342.12890625],"poa_monthly":[139.791015625,140.18896484375,164.8218536376953,164.47149658203125,173.2971649169922,159.90576171875,169.84793090820312,186.20114135742188,173.14492797851562,176.2291717529297,148.28318786621094,136.62326049804688],"solrad_monthly":[4.509387493133545,5.006748676300049,5.316833972930908,5.4823832511901855,5.590230941772461,5.3301920890808105,5.4789652824401855,6.00648832321167,5.77149772644043,5.684812068939209,4.94277286529541,4.407201766967773],"dc_monthly":[3644.867919921875,3606.52001953125,4179.85107421875,4158.3193359375,4252.9140625,3865.03369140625,4069.092041015625,4432.62744140625,4198.369140625,4336.99609375,3767.055419921875,3490.091064453125],"ac_annual":45940.55859375,"solrad_annual":5.293959140777588,"capacity_factor":17.308107376098633"inputs":"lat":"29.93","lon":"-95.61","system_capacity":"30.30","azimuth":"180","tilt":"40","array_type":"1","module_type":"1","losses":"10","errors":,"warnings":,"version":"1.0.1","ssc_info":"version":45,"build":"Linux 64 bit GNU/C++ Jul 7 2015 14:24:09","station_info":"lat":29.93000030517578,"lon":-95.62000274658203,"elev":41.0,"tz":-6.0,"location":"None","city":"","state":"Texas","solar_resource_file":"W9562N2993.csv","distance":964,"outputs":"ac_monthly":[3480.57373046875,3440.078369140625,3992.6513671875,3977.071533203125,4074.91357421875,3701.75,3897.655517578125,4248.00390625,4023.283447265625,4157.29931640625,3605.156005859375,3342.12890625],"poa_monthly":[139.791015625,140.18896484375,164.8218536376953,164.47149658203125,173.2971649169922,159.90576171875,169.84793090820312,186.20114135742188,173.14492797851562,176.2291717529297,148.28318786621094,136.62326049804688],"solrad_monthly":[4.509387493133545,5.006748676300049,5.316833972930908,5.4823832511901855,5.590230941772461,5.3301920890808105,5.4789652824401855,6.00648832321167,5.77149772644043,5.684812068939209,4.94277286529541,4.407201766967773],"dc_monthly":[3644.867919921875,3606.52001953125,4179.85107421875,4158.3193359375,4252.9140625,3865.03369140625,4069.092041015625,4432.62744140625,4198.369140625,4336.99609375,3767.055419921875,3490.091064453125],"ac_annual":45940.55859375,"solrad_annual":5.293959140777588,"capacity_factor":17.308107376098633


I am using the following class.



class PVClass

struct Top : Decodable
var Outputs: OutputsJSON?
var Inputs: InputsJSON?
enum CodingKeys : String, CodingKey
case Inputs = "inputs"
case Outputs = "outputs"


struct InputsJSON: Decodable
var lat: String?
var lon: String?
enum CodingKeys : String, CodingKey
case lat = "lat"
case lon = "lon"



struct OutputsJSON: Decodable

var dcMonthly: DC_MonthlyJSON?

struct DC_MonthlyJSON: Decodable
var DC_Monthly: [String]?
enum CodingKeys : String, CodingKey
case DC_Monthly = "dc_monthly"







I access the JSON. I can print the 'lat' variable value but dc_monthly array gives me 0. I know there are 12 elements in the array. Even if I print DC_Monthly.count the value is 0. How can I access the array elements?



let decoder = JSONDecoder()
let jsonData = try decoder.decode(PVClass.Top.self, from: data!)
print("Lat: ", jsonData.Inputs?.lat ?? "0")
print("dc_monthly: ", jsonData.Outputs?.dcMonthly?.DC_Monthly ?? "0")






arrays json swift4






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 9 at 13:11

























asked Nov 9 at 1:09









vrao

1602519




1602519











  • There's no dc_monthly key in the JSON you posted.
    – rmaddy
    Nov 9 at 5:21










  • Sorry my mistake. I have the complete JSON when I run my program but forgot to paste the full JSON. Now I have updated the post. Noticed that the array elements in dc-monthly are not named, so How do I parse the elements?
    – vrao
    Nov 9 at 13:15
















  • There's no dc_monthly key in the JSON you posted.
    – rmaddy
    Nov 9 at 5:21










  • Sorry my mistake. I have the complete JSON when I run my program but forgot to paste the full JSON. Now I have updated the post. Noticed that the array elements in dc-monthly are not named, so How do I parse the elements?
    – vrao
    Nov 9 at 13:15















There's no dc_monthly key in the JSON you posted.
– rmaddy
Nov 9 at 5:21




There's no dc_monthly key in the JSON you posted.
– rmaddy
Nov 9 at 5:21












Sorry my mistake. I have the complete JSON when I run my program but forgot to paste the full JSON. Now I have updated the post. Noticed that the array elements in dc-monthly are not named, so How do I parse the elements?
– vrao
Nov 9 at 13:15




Sorry my mistake. I have the complete JSON when I run my program but forgot to paste the full JSON. Now I have updated the post. Noticed that the array elements in dc-monthly are not named, so How do I parse the elements?
– vrao
Nov 9 at 13:15












1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










Your class definition does not match the structure of your JSON. Try this instead:



struct Top: Codable 
let inputs: Inputs
let outputs: Outputs


struct Inputs: Codable
let lat, lon: String


struct Outputs: Codable
let dcMonthly: [Double]

enum CodingKeys: String, CodingKey
case dcMonthly = "dc_monthly"



do
let top = try JSONDecoder().decode(Top.self, from: data)
print(top.outputs.dcMonthly.count) // 12
catch
print(error)






share|improve this answer






















  • this works. thank you
    – vrao
    Nov 9 at 21:09










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53218415%2fswift-parsing-json-arrays-gives-zero%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote



accepted










Your class definition does not match the structure of your JSON. Try this instead:



struct Top: Codable 
let inputs: Inputs
let outputs: Outputs


struct Inputs: Codable
let lat, lon: String


struct Outputs: Codable
let dcMonthly: [Double]

enum CodingKeys: String, CodingKey
case dcMonthly = "dc_monthly"



do
let top = try JSONDecoder().decode(Top.self, from: data)
print(top.outputs.dcMonthly.count) // 12
catch
print(error)






share|improve this answer






















  • this works. thank you
    – vrao
    Nov 9 at 21:09














up vote
0
down vote



accepted










Your class definition does not match the structure of your JSON. Try this instead:



struct Top: Codable 
let inputs: Inputs
let outputs: Outputs


struct Inputs: Codable
let lat, lon: String


struct Outputs: Codable
let dcMonthly: [Double]

enum CodingKeys: String, CodingKey
case dcMonthly = "dc_monthly"



do
let top = try JSONDecoder().decode(Top.self, from: data)
print(top.outputs.dcMonthly.count) // 12
catch
print(error)






share|improve this answer






















  • this works. thank you
    – vrao
    Nov 9 at 21:09












up vote
0
down vote



accepted







up vote
0
down vote



accepted






Your class definition does not match the structure of your JSON. Try this instead:



struct Top: Codable 
let inputs: Inputs
let outputs: Outputs


struct Inputs: Codable
let lat, lon: String


struct Outputs: Codable
let dcMonthly: [Double]

enum CodingKeys: String, CodingKey
case dcMonthly = "dc_monthly"



do
let top = try JSONDecoder().decode(Top.self, from: data)
print(top.outputs.dcMonthly.count) // 12
catch
print(error)






share|improve this answer














Your class definition does not match the structure of your JSON. Try this instead:



struct Top: Codable 
let inputs: Inputs
let outputs: Outputs


struct Inputs: Codable
let lat, lon: String


struct Outputs: Codable
let dcMonthly: [Double]

enum CodingKeys: String, CodingKey
case dcMonthly = "dc_monthly"



do
let top = try JSONDecoder().decode(Top.self, from: data)
print(top.outputs.dcMonthly.count) // 12
catch
print(error)







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 9 at 15:05

























answered Nov 9 at 14:34









Gereon

5,80941442




5,80941442











  • this works. thank you
    – vrao
    Nov 9 at 21:09
















  • this works. thank you
    – vrao
    Nov 9 at 21:09















this works. thank you
– vrao
Nov 9 at 21:09




this works. thank you
– vrao
Nov 9 at 21:09

















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53218415%2fswift-parsing-json-arrays-gives-zero%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)