Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "local_id" : "1841",
- "name_first" : "tiger",
- "name_last" : "lion",
- "address" : [
- {
- "id" : 1,
- "address_type" : "Home",
- "city" : "Delhi",
- "country" : "",
- "po_box" : ""
- },
- {
- "id" : 2,
- "address_type" : "Work",
- "city" : "",
- "country" : "",
- "po_box" : ""
- }
- ],
- "email" : [
- {
- "email_id" : "blah@gmail.com",
- "id" : 1,
- "type" : "Home"
- },
- {
- "email_id" : "Pearl1@gmail.com",
- "id" : 2,
- "type" : "Work"
- }
- ],
- "phone_number" : [
- {
- "id" : 1,
- "no" : "+911234567890",
- "type" : "Mobile"
- },
- {
- "id" : 2,
- "no" : "+917894561230",
- "type" : "work"
- }
- ]
- }`
- `
- {
- "local_id" : "1730",
- "name_first" : "lion",
- "name_last" : "king",
- "address" : [
- {
- "id" : 1,
- "address_type" : "Home",
- "city" : "Delhi",
- "country" : "India",
- "po_box" : "110041"
- },
- {
- "id" : 2,
- "address_type" : "Work",
- "city" : "Delhi-NCR",
- "country" : "India",
- "po_box" : "110048"
- },
- {
- "id" : 3,
- "address_type" : "Work",
- "city" : "Delhi-NCR",
- "country" : "Indai",
- "po_box" : "110048"
- }
- ],
- "email" : [
- {
- "email_id" : "updatethis@gmail.com",
- "id" : 1,
- "type" : "Home"
- },
- {
- "email_id" : "Pearl1@gmail.com",
- "id" : 2,
- "type" : "Work"
- },
- {
- "email_id" : "addthisarray@gmail.com",
- "id" : 3,
- "type" : "personal"
- }
- ],
- "phone_number" : [
- {
- "id" : 1,
- "no" : "+911234567890",
- "type" : "Mobile"
- }
- /*second array not here so remove that array from that document*/
- ]
- }`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement