2013-05-12 2 views
-3

Event Espresso를 사용하는 WP에서 다음 JSON이 표시됩니다. 과 같은 몇 가지 정보를 추출하고 싶습니다. 이벤트 이름, 장소Datet. 또한 AFNetworking을 사용하여 구현하고 싶습니다.JSON + AFNetworking

{ 
    "status": "OK", 
    "status_code": 200, 
    "body": { 
     "Events": [ 
      { 
       "id": 1, 
       "code": "1-5123548", 
       "name": "Name of Event", 
       "description": "some description here", 
       "status": "active", 
       "limit": 500, 
       "group_registrations_allowed": false, 
       "group_registrations_max": 5, 
       "active": true, 
       "member_only": false, 
       "virtual_url": "", 
       "call_in_number": "", 
       "phone": "", 
       "metadata": { 
        "default_payment_status": "Incomplete", 
        "venue_id": 1, 
        "additional_attendee_reg_info": "2", 
        "add_attendee_question_groups": { 
         "1": "1" 
        }, 
        "date_submitted": "March 12, 2013", 
        "event_thumbnail_url": "/../auditing-photo-150x150.jpg", 
        "event_hashtag": "", 
        "event_format": "", 
        "event_livestreamed": "", 
        "": "" 
       }, 
       "Datetimes": [ 
        { 
         "id": 93, 
         "is_primary": true, 
         "event_start": "2013-03-15 10:00:00", 
         "event_end": "2013-03-16 17:00:00", 
         "registration_start": "2013-01-01 08:00:00", 
         "registration_end": "2013-03-21 17:00:00", 
         "limit": 500, 
         "tickets_left": 500 
        } 
       ], 
       "Venues": [ 
        { 
         "id": 1, 
         "name": "Menara SSM", 
         "identifier": "1-513f488c788a2", 
         "address": "No. 7, Jalan Stesen Sentral 5", 
         "address2": "Kuala Lumpur Sentral", 
         "city": "Kuala Lumpur", 
         "state": "Federal Territory of Kuala Lumpur", 
         "zip": "50623", 
         "country": "Malaysia", 
         "user": 1 
        } 
       ], 
       "Categories": [ 
        { 
         "id": 3, 
         "name": "category", 
         "identifier": "a", 
         "description": "", 
         "user": 1 
        } 
       ], 
       "Prices": [ 
        { 
         "id": 73.2, 
         "name": "Registration Fee", 
         "amount": 500, 
         "description": null, 
         "limit": 500, 
         "remaining": 500, 
         "start_date": null, 
         "end_date": null, 
         "Pricetype": { 
          "id": 4, 
          "name": "Member Price", 
          "is_member": true, 
          "is_discount": false, 
          "is_tax": false, 
          "is_percent": false, 
          "is_global": true, 
          "order": 0 
         } 
        } 
       ] 
      } 
     ] 
    } 
} 

누군가가이를 수행하는 방법을 제안 할 수 있기를 바랍니다. 객관적인 C에서 상당히 새로운. 미리 감사드립니다.

답변