Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App getting crash while passing proper json. #148

Open
hirenutico opened this issue Sep 9, 2021 · 0 comments
Open

App getting crash while passing proper json. #148

hirenutico opened this issue Sep 9, 2021 · 0 comments

Comments

@hirenutico
Copy link

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
              }
            ]
          }
        ]
      }
    }
  ]
}
rogys88 added a commit to rogys88/JSONExport that referenced this issue Oct 18, 2022
Fixed issue (Ahmed-Ali#148) - App getting crash while passing proper json.

Task/Issue URL: Ahmed-Ali#148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant