Home » Java » java – How to skip value in JSON if Status is canceled?-Exceptionshub

java – How to skip value in JSON if Status is canceled?-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

Now I create data List View with data from JSON like this:

{
      "id": "23",
      "is_show": "0",
      "user_id": "200",
      "event_status": "activity_canceled",
      "event_user_type": "normal",
      "event_status_sub": "",
      "name": "event 1",
      "invitation": "text1",
      "description": "description text"
},
{
      "id": "25",
      "is_show": "0",
      "user_id": "200",
      "event_status": "activity_opened",
      "event_user_type": "normal",
      "event_status_sub": "",
      "name": "event 2",
      "invitation": "text2",
      "description": "description text"
},

I want to set List View to skip event 1 because event_status is „activity_canceled” to start the first of List View at event 2 behause event_status is “activity_opened.

Do not delete event 1 just skip to event 2

How to&Answers: