Ahmed-Ali / JSONExport

JSONExport is a desktop application for Mac OS X which enables you to export JSON objects as model classes with their associated constructors, utility methods, setters and getters in your favorite language.
Other
4.8k stars 794 forks source link

crashed,transform json to SwiftyJSON #134

Open Jerryshen170918 opened 5 years ago

Jerryshen170918 commented 5 years ago
屏幕快照 2019-04-26 上午11 43 32
Jerryshen170918 commented 5 years ago

{ "data": { "contract_phone_number": "00200039", "remark": "同意OK", "identity_number": "00200039", "cooperative_id": 32755, "id": 11, "state": 1, "sales_id": 39, "email": "asdfdsfad5@cds.com", "dealer_id": 11, "bank_account": "00200039", "address": "asdfdsfad", "is_account_pay": "1", "currency_symbol": "USD", "area_code": "4303", "job_no": "00200039", "tax_revenue_no": "00200039", "contract_name": "00200039", "cooperative_name": "Cambodia", "dealer_img": [ "https://eshopsit.cooldays.cn/opt//usr/data/opt/eshop/dealer/aeca1c7229db50a8518667cafa02ce17.jpg" ], "sales_name": "test1", "name": "00200039", "business_license_img": [ "https://eshopsit.cooldays.cn/opt//usr/data/opt/eshop/dealer/7190d3c97655376854cba22757368e56.jpg" ], "phone_number": "1334305581284", "location": "39.90403,116.407525" }, "info": { "code": "200", "info": "请求成功" } }

ifanchu commented 5 years ago

Hitting the same issue here.

zdiovo commented 4 years ago

Me, too.

break point code:

// if needs cast
let cast = lang.basicTypesWithSpecialFetchingNeedsTypeCast[index] ...

Xode reports error info:

JSONExport[20076:844672] Metal API Validation Enabled
Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file JSONExport/FileRepresenter.swift

JSONExport[20076:844672] Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file JSONExport/FileRepresenter.swift
JunsW commented 3 years ago

145 try this one. It fixed this issue