Skip to content

App getting crash while passing proper json. #148

Description

@hirenutico

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
              }
            ]
          }
        ]
      }
    }
  ]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions