Empty JSON fields not printing anything

Hi! I have a json file with over 3.000 records but some of them are empty.How do I handle empty fields on my JSON file? I am trying to parse it but it is not working.

Nothing gets printed because it won't pass line if let jsonData = try? decoder().decode ....


        if let url = Bundle.main.url(forResource: "vinyls", withExtension: "json"),let data = try? Data(contentsOf: url) {

            let decoder = JSONDecoder()

            if let jsonData = try? decoder.decode(jsonVinylData.self, from: data) {

                print(jsonData.vinyls)

            }

        } 

    }

thank u

Empty JSON fields not printing anything
 
 
Q