Created
August 30, 2012 16:14
-
-
Save reggi/3532063 to your computer and use it in GitHub Desktop.
Mongo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"transactions": [ | |
{ | |
"amount": "10.00", | |
"authorization": null, | |
"created_at": "2012-08-24T14:02:50-04:00", | |
"gateway": "bogus", | |
"id": 999225661, | |
"kind": "capture", | |
"order_id": 450789469, | |
"status": "success", | |
"test": true, | |
"receipt": {} | |
} | |
] | |
} | |
{ | |
"transactions": [ | |
{ | |
"amount": "10.00", | |
"authorization": null, | |
"created_at": "2012-08-24T14:02:50-04:00", | |
"gateway": "bogus", | |
"id": 999225661, | |
"kind": "sale", | |
"order_id": 450789469, | |
"status": "success", | |
"test": true, | |
"receipt": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to do this. You must initialize that object property before you can work on it. If the transactions are coming in as an array of objects then you will have to loop through like so