I would like to convert json representation of bson ObjectId returned from REST mongodb API to string from: {"inc":1365419770,"machine":-856505582,"timeSecond":1375343587,"time":1375343587000,"new":false};
to: 51fa13e3ccf2c3125162a6fa
in the client side, so it will call other API using path params.
I just developed it, in case some one else is looking for the same functionality.