Find Jobs
Hire Freelancers

fix json parsing error in Swift 5

$10-30 USD

Tamamlandı
İlan edilme: yaklaşık 5 yıl önce

$10-30 USD

Teslimde ödenir
See the attached playground file. I'm trying to parse a small json file and having difficulties with some nested arrays. Should just be adjusting a couple lines of code. The error I'm getting is: Decoding Error: Type Mismatch Type Mismatch: Context(codingPath: [CodingKeys(stringValue: "message", intValue: nil), CodingKeys(stringValue: "BOM", intValue: nil), CodingKeys(stringValue: "items", intValue: nil)], debugDescription: "Expected to decode Dictionary<String, Any> but found an array instead.", underlyingError: nil) type: Dictionary<String, Any> Here is an example of the json. {"error":{"count":1,"maxLevel":1,"serverVersion":"1.8.23.0","list":[{"msg":"Missing Shaft bar : material: PM00000061","level":"warning","step":"BOM","loadCase":"---"}]},"BOM":{"error":0,"error_msg":"","missing":[],"items":[{"cost":15331.07085,"cost_per_unit":15331.07085,"description":"Pulley","partnumber":"Pulley","quantity":1,"unit":"Each","children":[{"cost":7915.189306,"cost_per_unit":3957.594653,"description":"1973 x 100","partnumber":"EndDisk","quantity":2,"unit":"Each","children":[{"cost":1.05241,"cost_per_unit":1,"description":"Oxy Cutter","partnumber":"PM00000021","quantity":1.05241,"unit":"Hr"},{"cost":3956.542243,"cost_per_unit":1.234,"description":"AS 250( 100 )","partnumber":"PM00000050","quantity":3206.274103,"unit":"Kg"}]},{"cost":4058.44,"cost_per_unit":2029.22,"description":"Bikon 1006 400x495","partnumber":"PM00005045","quantity":2,"unit":"Each","children":[]},{"cost":-1,"cost_per_unit":-1,"description":"","partnumber":"","quantity":-1,"unit":"Each","children":[{"cost":-1,"cost_per_unit":-1,"description":"","partnumber":"","quantity":-1,"unit":"Kg"},{"cost":-1,"cost_per_unit":90,"description":"Fine Machine","partnumber":"PM00000016","quantity":-1,"unit":"Hr"},{"cost":-1,"cost_per_unit":320,"description":"Normalize","partnumber":"PM00000017","quantity":-1,"unit":"Ton"},{"cost":-1,"cost_per_unit":90,"description":"Rough Machine","partnumber":"PM00000015","quantity":-1,"unit":"Hr"},{"cost":-1,"cost_per_unit":90,"description":"Bar Ultrasound","partnumber":"PM00000014","quantity":-1,"unit":"Each"}]},{"cost":3357.441544,"cost_per_unit":3357.441544,"description":"1973 ID x 1506 AS 250( 27 )","partnumber":"Shell","quantity":1,"unit":"Each","children":[{"cost":3054.942085,"cost_per_unit":1.234,"description":"AS 250( 27 )","partnumber":"PM00000050","quantity":2475.641884,"unit":"Kg"},{"cost":53.63938,"cost_per_unit":90,"description":"Plate Roll","partnumber":"PM00000010","quantity":0.595993,"unit":"Hr"},{"cost":27.400031,"cost_per_unit":1.2,"description":"Weld MIG","partnumber":"PM00000019","quantity":22.83336,"unit":"Kg"},{"cost":135.36,"cost_per_unit":90,"description":"Weld Prep","partnumber":"PM00000013","quantity":1.504,"unit":"Hr"},{"cost":86.100047,"cost_per_unit":90,"description":"Weld MIG","partnumber":"PM00000012","quantity":0.956667,"unit":"Hr"}]}]}]}}
Proje No: 19209132

Proje hakkında

5 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 5 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
Hi, Hope you are doing well!!! I've gone through your requirement and ready to resolve read array with in 1 hour. Moreover, I can start it right away just after your confirmation. I’m full time freelancer & having more than 7+ years of experience on mobile technology and developed many applications which is on app & play store. I've worked on Swift, Objective-C & Java. However, I can play very well with these languages. So lets have a quick discussion for more info. Looking forward to hearing from you soon. Thanks
$24 USD 1 gün içinde
4,9 (25 değerlendirme)
5,0
5,0
5 freelancers are bidding on average $27 USD for this job
Kullanıcı Avatarı
Dear Sir, My name is Parth. I've read your brief and can see that you want to fix JSON parsing error. ***** We've passed all freelancer certifications relevant to this project. ***** We are highly qualified for this project and would love to speak with you further about taking this project on. I would like to introduce my company(Sapphire Software Solutions), We are 17 years old ISO Certified product and service based company and have worked on various projects. We have our own two products used by MNC companies worldwide. My team has an average of 5 years of experience in designing and developing mobile apps for iPhone and Android. We develop apps by following securities and standards recommended by Google and Apple. We believe in providing services that are quick in terms of turnaround time and smart in terms of quality. Delays and low-quality work are kept at bay in our organization. Please Note: Quote is subject to change as per the final agreed scope. Thank you for taking the time to read my application. Best regards, Parth
$50 USD 1 gün içinde
5,0 (4 değerlendirme)
2,8
2,8
Kullanıcı Avatarı
Hello, i have experience in the same of 3 years, I'm expert in E-commerce. I believe for provide good quality work to my respective clients. Thank you.
$15 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
Hello i have good knowledge of swift language and swift 5.i am working on swift last 3 years and i have worked on almost 20 application on which i used swift. i really like to help you. Thanks Jayesh
$20 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
hi, how are u? it is very easy for me. i will fix in max 1 hour lets discuss more detail via chat. best regard.
$25 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   UNITED STATES bayrağı
Bonita Springs, United States
5,0
142
Ödeme yöntemi onaylandı
Eki 25, 2004 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.