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

App getting crash while passing proper json. #148

Open hirenutico opened 3 years ago

hirenutico commented 3 years ago

image

Hi, I am using your projects for generating swiftyJSON Model classes. Sometimes I am getting crash issues while passing the JSON format data. I am getting a crash issue while passing the following JSON data, please check it, bro.

  "status": true,
  "code": 200,
  "message": "Old Order History listing",
  "data": [
    {
      "id": 100,
      "orderid": 23432423,
      "datetime": "",
      "orderstatus": "completed / Pending / Running / closedbyadmin / closedbyuser",
      "paybleamount": 1234.09,
      "deliveryaddress": {
        "id": 123,
        "address": "",
        "addresstype": "google",
        "lat": 12345.09,
        "long": 12345.09
      },
      "community": {
        "id": 123,
        "title": "",
        "address": "",
        "shortdesc": "",
        "lat": 1234.09,
        "long": 1234.09
      },
      "coupon": {
        "id": 123,
        "title": "",
        "code": "",
        "discount": 123.09,
        "shortdesc": "",
        "details": "",
        "terms": "",
        "validdatetime": ""
      },
      "paymentmode": {
        "id": 123,
        "title": "Google Pay",
        "isdefault": true,
        "payment_type": "Third"
      },
      "review": {
        "rating": 4.5,
        "comments": ""
      },
      "delivery_date": "",
      "title": "",
      "invoice": "Invoice HTML format",
      "invoiceURL": "Invoice PDF format URL link for download or mail it.",
      "items": {
        "orders": [
          {
            "id": 123,
            "title": "",
            "itemimage": "",
            "gallery": [
              "https://eastceylon.com/?gclid=EAIaIQobChMIm8GTosKH8gIVARCRCh1TTwZcEAAYASAAEgKX1PD_BwE"
            ],
            "shortdesc": "",
            "longdesc": "",
            "price": 123.09,
            "qty": 1,
            "cattegory": {
              "id": 123,
              "cat_name": ""
            },
            "sub_cattegory": {
              "id": 123,
              "cat_name": ""
            },
            "nutri_info": "",
            "terms": "",
            "info": "",
            "works": "",
            "isveg": true,
            "isPackage": false,
            "items": []
          }
        ],
        "meals": [
          {
            "id": 123,
            "title": "",
            "itemimage": "",
            "gallery": [
              "https://eastceylon.com/?gclid=EAIaIQobChMIm8GTosKH8gIVARCRCh1TTwZcEAAYASAAEgKX1PD_BwE"
            ],
            "shortdesc": "",
            "longdesc": "",
            "price": 123.09,
            "qty": 1,
            "cattegory": {
              "id": 123,
              "cat_name": ""
            },
            "sub_cattegory": {
              "id": 123,
              "cat_name": ""
            },
            "nutri_info": "",
            "terms": "",
            "info": "",
            "works": "",
            "isveg": true,
            "isPackage": true,
            "items": [
              {
                "id": 123,
                "title": "",
                "itemimage": "",
                "gallery": [
                  "https://eastceylon.com/?gclid=EAIaIQobChMIm8GTosKH8gIVARCRCh1TTwZcEAAYASAAEgKX1PD_BwE"
                ],
                "shortdesc": "",
                "longdesc": "",
                "price": 123.09,
                "qty": 1,
                "cattegory": {
                  "id": 123,
                  "cat_name": ""
                },
                "sub_cattegory": {
                  "id": 123,
                  "cat_name": ""
                },
                "nutri_info": "",
                "terms": "",
                "info": "",
                "works": "",
                "isveg": true,
                "isPackage": false
              }
            ]
          }
        ]
      }
    }
  ]
}