I think you want z.report[0]; this is all basic javascript stuff and
has nothing to do with bson.
> var z = {a:[1,2,3]}
> z.a
[ 1, 2, 3 ]
> z.a[0]
1
> db.t1.insert(z)
> db.t1.findOne().a[0]
1
you can use a for loop to get the keys from any javascript object;
then you can get the data.
> for(key in z) print(key)
a
> for(key in z.a) print(key)
0
1
2
> comes from another source so I would like to avoid reparsing it before
> throwing it into Mongo.
I don't know what you mean here. If you are working with javascript
objects then it will need to be encoded to bson before being saved in
mongodb.
>
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>