Tuesday 23 May 2017

query json data for specific conditions

what is the recommended way to query json data? for example my data looks like below. I am using nodejs

 var meetings = 
           {
             "meeting" : [
                 {
                      "subject" : "Server upgrade for data center C3W",
                      "attendees" : [
                          {
                            "name" : "Ron Edward",
                            "title": "CEO",
                            "company": "Data Solutions",
                            "confirmed" : "yes"
                          },
                          {
                            "name" : "John Steward",
                            "title": "Procurement Officer",
                            "company": "Data Solutions",
                            "confirmed" : "yes"
                          },
                          {
                            "name" : "Name 1",
                            "title": "Senior Director",
                            "company": "C1 Corporation",
                            "confirmed" : "no"
                          }

                        ]
                 }
              ]
           }
       ;

and i want to query like if there is any of the attendee with confirmed no value



via Vik

No comments:

Post a Comment